Maps a DateTime Property to a DateTime column that stores date & time down to the accuracy of a second.

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

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class DateTimeType _
	Inherits ValueTypeType _
	Implements IIdentifierType, ILiteralType, IVersionType, IType,  _
	ICacheAssembler
C#
[SerializableAttribute]
public class DateTimeType : ValueTypeType, 
	IIdentifierType, ILiteralType, IVersionType, IType, ICacheAssembler
Visual C++
[SerializableAttribute]
public ref class DateTimeType : public ValueTypeType, 
	IIdentifierType, ILiteralType, IVersionType, IType, ICacheAssembler
JavaScript
NHibernate.Type.DateTimeType = function();

Type.createClass(
	'NHibernate.Type.DateTimeType',
	NHibernate.Type.ValueTypeType,
	NHibernate.Type.IIdentifierType,
	NHibernate.Type.ILiteralType,
	NHibernate.Type.IVersionType,
	NHibernate.Type.IType,
	NHibernate.Type.ICacheAssembler);

Remarks

This only stores down to a second, so if you are looking for the most accurate date and time storage your provider can give you use the TimestampType. or the TicksType

Inheritance Hierarchy

See Also