Read the persistent state associated with the given identifier into the given transient instance.

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

Syntax

C#
void Load(
	Object obj,
	Object id
)
Visual Basic
Sub Load ( _
	obj As Object, _
	id As Object _
)
Visual C++
void Load(
	Object^ obj, 
	Object^ id
)

Parameters

obj
Type: System..::..Object
An "empty" instance of the persistent class
id
Type: System..::..Object
A valid identifier of an existing persistent instance of the class

See Also