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

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

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
JavaScript
NHibernate.Type.TicksType = function();

Type.createClass(
	'NHibernate.Type.TicksType',
	NHibernate.Type.ValueTypeType,
	NHibernate.Type.IVersionType,
	NHibernate.Type.IType,
	NHibernate.Type.ICacheAssembler,
	NHibernate.Type.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