NPersistence Reference Guide
This annotation must be specified for persistent fields or properties of type System.DateTime and System.DateTime.

It may only be specified for fields or properties of these types.

The Temporal annotation may be used in conjunction with the Basic annotation, the Id annotation, or the ElementCollection annotation (when the element collection value is of such a temporal type.

Examples

CopyC#
Example:

[Temporal(DATE)]
protected System.DateTime endDate;

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public sealed class Temporal : Attribute

Members

         
 All Members  Constructors   Fields  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Temporal()()()()
Initializes a new instance of the Temporal class
Temporal(TemporalType)
Initializes a new instance of the Temporal class
Value
The type used in mapping System.DateTime or System.DateTime

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    NPersistence..::..Temporal

See Also