NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
This annotation must be specified for persistent map keys of type
DateTime.
CopyC#
Namespace: NPersistenceIt may only be specified for map keys of these types.
The MapKeyTemporal annotation can be applied to an element collection or relationship of type System.Collections.Generic.Dictionary in conjunction with the ElementCollection, OneToMany, or ManyToMany annotation.
Examples

Example:
[OneToMany]
[MapKeyTemporal(DATE)]
protected System.Collections.Generic.Dictionary<System.DateTime, Employee> employees;
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public sealed class MapKeyTemporal : Attribute
Members
All Members | Constructors ![]() | Fields ![]() |
![]() ![]() | ![]() ![]() ![]() | ![]() ![]() | ![]() ![]() ![]() ![]() |
Member | Description | |
---|---|---|
![]() | MapKeyTemporal()()()() | Initializes a new instance of the MapKeyTemporal class |
![]() | MapKeyTemporal(TemporalType) | Initializes a new instance of the MapKeyTemporal class |
![]() | Value | (Required) The type used in mapping
System.DateTime or
System.DateTime.
|
Inheritance Hierarchy
System..::..Object
System..::..Attribute
NPersistence..::..MapKeyTemporal
System..::..Attribute
NPersistence..::..MapKeyTemporal