Attempts to load the entity from the second-level cache.

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

Syntax

C#
protected virtual Object LoadFromSecondLevelCache(
	LoadEvent event,
	IEntityPersister persister,
	LoadType options
)
Visual Basic
Protected Overridable Function LoadFromSecondLevelCache ( _
	event As LoadEvent, _
	persister As IEntityPersister, _
	options As LoadType _
) As Object
Visual C++
protected:
virtual Object^ LoadFromSecondLevelCache(
	LoadEvent^ event, 
	IEntityPersister^ persister, 
	LoadType^ options
)

Parameters

event
Type: NHibernate.Event..::..LoadEvent
The load event
persister
Type: NHibernate.Persister.Entity..::..IEntityPersister
The persister for the entity being requested for load
options
Type: NHibernate.Event..::..LoadType
The load options.

Return Value

The entity from the second-level cache, or null.

See Also