Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.Session Property

Gets a Session for use by this template.

[Visual Basic]
Protected ReadOnly Property Session() As ISession
   Protected Get
   End Get
End Property
[C#]
protected ISession Session { protected get; }

Property Value

The session.

Remarks

- Returns a new Session in case of "alwaysUseNewSession" (using the same ADO.NET connection as a transaction Session, if applicable) - a pre-bound Session in case of "AllowCreate" is set to false (not the default) - or a pre-bound Session or new Session if no transactional or other pre-bound Session exists.

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace