Seed the given instance state snapshot with an initial version number

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

Syntax

Visual Basic (Declaration)
Public Shared Function SeedVersion ( _
	fields As Object(), _
	versionProperty As Integer, _
	versionType As IVersionType, _
	force As Boolean, _
	session As ISessionImplementor _
) As Boolean
C#
public static bool SeedVersion(
	Object[] fields,
	int versionProperty,
	IVersionType versionType,
	bool force,
	ISessionImplementor session
)
Visual C++
public:
static bool SeedVersion(
	array<Object^>^ fields, 
	int versionProperty, 
	IVersionType^ versionType, 
	bool force, 
	ISessionImplementor^ session
)
JavaScript
NHibernate.Engine.Versioning.seedVersion = function(fields, versionProperty, versionType, force, session);

Parameters

fields
Type: array< System..::.Object >[]()[]
An array of objects that contains a snapshot of a persistent object.
versionProperty
Type: System..::.Int32
The index of the version property in the fields parameter.
versionType
Type: NHibernate.Type..::.IVersionType
The IVersionType of the versioned property.
force
Type: System..::.Boolean
Force the version to initialize
session
Type: NHibernate.Engine..::.ISessionImplementor
The current session, if any.

Return Value

trueTruetruetrue (True in Visual Basic) if the version property needs to be seeded with an initial value.

See Also