A command-oriented API for performing bulk operations against a database.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public interface IStatelessSession : IDisposable |
Visual Basic |
---|
Public Interface IStatelessSession _ Inherits IDisposable |
Visual C++ |
---|
public interface class IStatelessSession : IDisposable |
Remarks
A stateless session does not implement a first-level cache nor
interact with any second-level cache, nor does it implement
transactional write-behind or automatic dirty checking, nor do
operations cascade to associated instances. Collections are
ignored by a stateless session. Operations performed via a
stateless session bypass NHibernate's event model and
interceptors. Stateless sessions are vulnerable to data
aliasing effects, due to the lack of a first-level cache.
For certain kinds of transactions, a stateless session may
perform slightly faster than a stateful session.