Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateAccessor.FlushIfNecessary Method

Flush the given Hibernate Session if necessary.

[Visual Basic]
Protected Sub FlushIfNecessary( _
   ByVal session As ISession, _
   ByVal existingTransaction As Boolean _
)
[C#]
protected void FlushIfNecessary(
   ISession session,
   bool existingTransaction
);

Parameters

session
The current Hibernate Session.
existingTransaction
if set to true if executing within an existing transaction.

See Also

HibernateAccessor Class | Spring.Data.NHibernate Namespace