Assembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Flush |
C# |
---|
public void Flush() |
Visual C++ |
---|
public: virtual void Flush() sealed |
JavaScript |
---|
function flush(); |
Implements
ISession..::.Flush()()()
Remarks
This can be called from commit() or at the start of a Find() method.
Perform all the necessary SQL statements in a sensible order, to allow users to repect foreign key constraints: Inserts, in the order they were performed Updates Deletion of collection elements Insertion of collection elements Deletes, in the order they were performed
Go through all the persistent objects and look for collections they might be holding. If they had a nonpersistable collection, substitute a persistable one