Retrieve a entity, obtaining the specified lock mode.

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

Syntax

C#
public T Get<T>(
	Object id,
	LockMode lockMode
)
Visual Basic
Public Function Get(Of T) ( _
	id As Object, _
	lockMode As LockMode _
) As T
Visual C++
public:
generic<typename T>
virtual T Get(
	Object^ id, 
	LockMode^ lockMode
) sealed

Parameters

id
Type: System..::..Object

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

lockMode
Type: NHibernate..::..LockMode

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

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:NHibernate.Impl.StatelessSessionImpl.Get``1(System.Object,NHibernate.LockMode)"]

Return Value

a detached entity instance

See Also