Retrieve an entity, obtaining the specified lock mode.

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

Syntax

C#
Object Get(
	string entityName,
	Object id,
	LockMode lockMode
)
Visual Basic
Function Get ( _
	entityName As String, _
	id As Object, _
	lockMode As LockMode _
) As Object
Visual C++
Object^ Get(
	String^ entityName, 
	Object^ id, 
	LockMode^ lockMode
)

Parameters

entityName
Type: System..::..String

[Missing <param name="entityName"/> documentation for "M:NHibernate.IStatelessSession.Get(System.String,System.Object,NHibernate.LockMode)"]

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.IStatelessSession.Get(System.String,System.Object,NHibernate.LockMode)"]

lockMode
Type: NHibernate..::..LockMode

[Missing <param name="lockMode"/> documentation for "M:NHibernate.IStatelessSession.Get(System.String,System.Object,NHibernate.LockMode)"]

Return Value

A detached entity instance

See Also