Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Flush Method

Flush all pending saves, updates and deletes to the database.

[Visual Basic]
Public NotOverridable Sub Flush() _
    Implements ICommonHibernateOperations.Flush
[C#]
public void Flush();

Implements

ICommonHibernateOperations.Flush

Remarks

Only invoke this for selective eager flushing, for example when ADO.NET code needs to see certain changes within the same transaction. Else, it's preferable to rely on auto-flushing at transaction completion.

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace