A IPersistenceContext represents the state of persistent "stuff" which
NHibernate is tracking. This includes persistent entities, collections,
as well as proxies generated.
Namespace: NHibernate.EngineAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class StatefulPersistenceContext : IPersistenceContext, ISerializable, IDeserializationCallback |
Visual Basic |
---|
<SerializableAttribute> _ Public Class StatefulPersistenceContext _ Implements IPersistenceContext, ISerializable, IDeserializationCallback |
Visual C++ |
---|
[SerializableAttribute] public ref class StatefulPersistenceContext : IPersistenceContext, ISerializable, IDeserializationCallback |
Remarks
There is meant to be a one-to-one correspondence between a SessionImpl and
a PersistentContext. The SessionImpl uses the PersistentContext to track
the current state of its context. Event-listeners then use the
PersistentContext to drive their processing.