Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonHibernateOperations.Flush Method

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

[Visual Basic]
Public Sub Flush()
void Flush();


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.


Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

ICommonHibernateOperations Interface | Spring.Data.NHibernate Namespace