NPersistence Reference Guide
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.

The AttributeOverride and AssociationOverride annotations may be used to override mappings declared or defaulted by the embeddable class.

Examples

CopyC#
Example:

[Embedded]
[AttributeOverride(PropertyName="startDate", Name="EMP_START")]
[AttributeOverride(PropertyName="endDate", Name="EMP_END")]
public EmploymentPeriod getEmploymentPeriod() { ... }

Namespace: NPersistence
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  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Embedded()()()()
Initializes a new instance of the Embedded class

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    NPersistence..::..Embedded

See Also