Maps a DateTime Property to an Int64 column that stores the DateTime using the Ticks property.

Namespace: NHibernate.Type
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
[SerializableAttribute]
public class TicksType : PrimitiveType, IVersionType, 
	IType, ICacheAssembler, ILiteralType
Visual Basic
<SerializableAttribute> _
Public Class TicksType _
	Inherits PrimitiveType _
	Implements IVersionType, IType, ICacheAssembler, ILiteralType
Visual C++
[SerializableAttribute]
public ref class TicksType : public PrimitiveType, 
	IVersionType, IType, ICacheAssembler, ILiteralType

Remarks

This is the recommended way to "timestamp" a column. The System.DateTime.Ticks is accurate to 100-nanosecond intervals.

Inheritance Hierarchy

See Also