Get the version number of the given instance state snapshot

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

Syntax

C#
public static Object GetVersion(
	Object[] fields,
	IEntityPersister persister
)
Visual Basic
Public Shared Function GetVersion ( _
	fields As Object(), _
	persister As IEntityPersister _
) As Object
Visual C++
public:
static Object^ GetVersion(
	array<Object^>^ fields, 
	IEntityPersister^ persister
)

Parameters

fields
Type: array<System..::..Object>[]()[][]
An array of objects that contains a snapshot of a persistent object.
persister
Type: NHibernate.Persister.Entity..::..IEntityPersister
The IEntityPersister that is responsible for persisting the values of the fields parameter.

Return Value

The value of the version contained in the fields parameter or null if the Entity is not versioned.

See Also