Do a version check (optional operation)

Namespace: NHibernate.Persister.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
void Lock(
	Object id,
	Object version,
	Object obj,
	LockMode lockMode,
	ISessionImplementor session
)
Visual Basic
Sub Lock ( _
	id As Object, _
	version As Object, _
	obj As Object, _
	lockMode As LockMode, _
	session As ISessionImplementor _
)
Visual C++
void Lock(
	Object^ id, 
	Object^ version, 
	Object^ obj, 
	LockMode^ lockMode, 
	ISessionImplementor^ session
)

Parameters

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.Persister.Entity.IEntityPersister.Lock(System.Object,System.Object,System.Object,NHibernate.LockMode,NHibernate.Engine.ISessionImplementor)"]

version
Type: System..::..Object

[Missing <param name="version"/> documentation for "M:NHibernate.Persister.Entity.IEntityPersister.Lock(System.Object,System.Object,System.Object,NHibernate.LockMode,NHibernate.Engine.ISessionImplementor)"]

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Persister.Entity.IEntityPersister.Lock(System.Object,System.Object,System.Object,NHibernate.LockMode,NHibernate.Engine.ISessionImplementor)"]

lockMode
Type: NHibernate..::..LockMode

[Missing <param name="lockMode"/> documentation for "M:NHibernate.Persister.Entity.IEntityPersister.Lock(System.Object,System.Object,System.Object,NHibernate.LockMode,NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Persister.Entity.IEntityPersister.Lock(System.Object,System.Object,System.Object,NHibernate.LockMode,NHibernate.Engine.ISessionImplementor)"]

See Also