Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionScope Members

SessionScope overview

Public Instance Constructors

SessionScope Overloaded. Initializes a new instance of the SessionScope class.

Public Instance Properties

DefaultFlushMode Gets the flushmode to be applied on each newly created session.
EntityInterceptor Get or set the configured EntityInterceptor
IsOpen Gets a flag, whether this scope is in "open" state on the current logical thread.
IsParticipating Gets a flag, whether this scope manages it's own session for the current logical thread or not.
SessionFactory Get or set the configured SessionFactory
SingleSession Set whether to use a single session for each request. Default is "true". If set to false, each data access operation or transaction will use its own session (like without Open Session in View). Each of those sessions will be registered for deferred close, though, actually processed at request completion.

Public Instance Methods

Close Close the current view's session and unregisters from spring's TransactionSynchronizationManager.
Dispose Call
Close()
,
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Open Opens a new session or participates in an existing session and registers with spring's TransactionSynchronizationManager.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

log The logging instance.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SessionScope Class | Spring.Data.NHibernate.Support Namespace