NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Specifies a persistent field or property of an entity whose
value is an instance of an embeddable class. The embeddable
class must be annotated as Embeddable.
CopyC#
Namespace: NPersistenceThe AttributeOverride and AssociationOverride annotations may be used to override mappings declared or defaulted by the embeddable class.
Examples
Example: [Embedded] [AttributeOverride(PropertyName="startDate", Name="EMP_START")] [AttributeOverride(PropertyName="endDate", Name="EMP_END")] public EmploymentPeriod getEmploymentPeriod() { ... }
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
| C# |
public sealed class Embedded : Attribute
Members
| All Members | Constructors |
| Member | Description | |
|---|---|---|
| Embedded()()()() | Initializes a new instance of the Embedded class |
Inheritance Hierarchy
System..::..Object
System..::..Attribute
NPersistence..::..Embedded
System..::..Attribute
NPersistence..::..Embedded