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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object InternalLoad(
	string entityName,
	Object id,
	bool eager,
	bool isNullable
)
Visual Basic
Function InternalLoad ( _
	entityName As String, _
	id As Object, _
	eager As Boolean, _
	isNullable As Boolean _
) As Object
Visual C++
Object^ InternalLoad(
	String^ entityName, 
	Object^ id, 
	bool eager, 
	bool isNullable
)

Parameters

entityName
Type: System..::..String
The entityName (or class full name) 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