Retrieve a entity.

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

Syntax

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

Parameters

entityName
Type: System..::..String

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

id
Type: System..::..Object

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

Return Value

A detached entity instance

See Also