Load an instance without checking if it was deleted. If it does not exist and isn't nullable, throw an exception. This method may create a new proxy or return an existing proxy.

Namespace:  NHibernate.Engine
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function InternalLoad ( _
	persistentClass As Type, _
	id As Object, _
	eager As Boolean, _
	isNullable As Boolean _
) As Object
C#
Object InternalLoad(
	Type persistentClass,
	Object id,
	bool eager,
	bool isNullable
)
Visual C++
Object^ InternalLoad(
	Type^ persistentClass, 
	Object^ id, 
	bool eager, 
	bool isNullable
)
JavaScript
function internalLoad(persistentClass, id, eager, isNullable);

Parameters

persistentClass
Type: System..::.Type
The Type to load.
id
Type: System..::.Object
The identifier of the object in the database.
eager
Type: System..::.Boolean
When enabled, the object is eagerly fetched.
isNullable
Type: System..::.Boolean
Allow null instance

Return Value

A proxy of the object or an instance of the object if the persistentClass does not have a proxy.

Exceptions

ExceptionCondition
NHibernate..::.ObjectNotFoundExceptionNo object could be found with that id.

See Also