NPersistence Reference Guide
This annotation must be specified for persistent map keys of type DateTime.

It 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

CopyC#
Example:

[OneToMany]
[MapKeyTemporal(DATE)]
protected System.Collections.Generic.Dictionary<System.DateTime, Employee> employees;

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

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
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

See Also