Maps a DateTime Property to an DateTime column that only stores the
Hours, Minutes, and Seconds of the DateTime as significant.
Also you have for Time handling, the NHibernate Type TimeAsTimeSpanType,
the which maps to a TimeSpan.
Namespace: NHibernate.TypeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class TimeType : PrimitiveType, IIdentifierType, IType, ICacheAssembler, ILiteralType |
Visual Basic |
---|
<SerializableAttribute> _ Public Class TimeType _ Inherits PrimitiveType _ Implements IIdentifierType, IType, ICacheAssembler, ILiteralType |
Visual C++ |
---|
[SerializableAttribute] public ref class TimeType : public PrimitiveType, IIdentifierType, IType, ICacheAssembler, ILiteralType |
Remarks
This defaults the Date to "1753-01-01" - that should not matter because using this Type indicates that you don't care about the Date portion of the DateTime.
A more appropriate choice to store the duration/time is the TimeSpanType. The underlying Time tends to be handled differently by different DataProviders.
Inheritance Hierarchy
System..::..Object
NHibernate.Type..::..AbstractType
NHibernate.Type..::..NullableType
NHibernate.Type..::..ImmutableType
NHibernate.Type..::..PrimitiveType
NHibernate.Type..::..TimeType
NHibernate.Type..::..AbstractType
NHibernate.Type..::..NullableType
NHibernate.Type..::..ImmutableType
NHibernate.Type..::..PrimitiveType
NHibernate.Type..::..TimeType