Maps a DateTime Property to an Int64 column
that stores the DateTime using the Ticks property.
Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate)
Version: 1.2.0.4000
Syntax
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class TicksType _ Inherits ValueTypeType _ Implements IVersionType, IType, ICacheAssembler, ILiteralType |
| C# |
|---|
[SerializableAttribute] public class TicksType : ValueTypeType, IVersionType, IType, ICacheAssembler, ILiteralType |
| Visual C++ |
|---|
[SerializableAttribute] public ref class TicksType : public ValueTypeType, IVersionType, IType, ICacheAssembler, ILiteralType |
Remarks
This is the recommended way to "timestamp" a column. The System.DateTime.Ticks
is accurate to 100-nanosecond intervals.