Get a fully loaded entity instance that is cached externally

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

Syntax

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

Parameters

entityName
Type: System..::..String
the name of the entity
id
Type: System..::..Object
the instance identifier

Return Value

a fully initialized entity

See Also