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)
Version: 1.2.0.4000

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

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

System.Object
  NHibernate.Type.AbstractType
    NHibernate.Type.NullableType
      NHibernate.Type.ImmutableType
        NHibernate.Type.ValueTypeType
          NHibernate.Type.DateTimeType