Get the version number (or timestamp) from the object's version property (or return null if not versioned)

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

Syntax

C#
Object GetVersion(
	Object obj,
	EntityMode entityMode
)
Visual Basic
Function GetVersion ( _
	obj As Object, _
	entityMode As EntityMode _
) As Object
Visual C++
Object^ GetVersion(
	Object^ obj, 
	EntityMode entityMode
)

Parameters

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Metadata.IClassMetadata.GetVersion(System.Object,NHibernate.EntityMode)"]

entityMode
Type: NHibernate..::..EntityMode

[Missing <param name="entityMode"/> documentation for "M:NHibernate.Metadata.IClassMetadata.GetVersion(System.Object,NHibernate.EntityMode)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Metadata.IClassMetadata.GetVersion(System.Object,NHibernate.EntityMode)"]

See Also