NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Specifies a composite primary key class that is mapped to
multiple fields or properties of the entity.
CopyC#
Namespace: NPersistenceThe names of the fields or properties in the primary key class and the primary key fields or properties of the entity must correspond and their types must be the same.
Examples

Example: [IdClass(com.acme.EmployeePK.class)] [Entity] public class Employee { [Id] String empName; [Id] Date birthDay; ... }
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public sealed class IdClass : Attribute
Members
All Members | Constructors ![]() | Fields ![]() |
![]() ![]() | ![]() ![]() ![]() | ![]() ![]() | ![]() ![]() ![]() ![]() |
Member | Description | |
---|---|---|
![]() | IdClass()()()() | Initializes a new instance of the IdClass class |
![]() | IdClass(Type) | Initializes a new instance of the IdClass class |
![]() | Value | Primary key class/// |
Inheritance Hierarchy
System..::..Object
System..::..Attribute
NPersistence..::..IdClass
System..::..Attribute
NPersistence..::..IdClass