Nhibernate order of SQL statements when flushing session

According to NHibernate documentation, SQL statements are issued in the following order when a session is flushed:

  • all entity insertions, in the same order the corresponding objects were saved using ISession.Save()
  • all entity updates
  • all collection deletions
  • all collection element deletions, updates and insertions
  • all collection insertions
  • all entity deletions, in the same order the corresponding objects were deleted using ISession.Delete()

Why is it forced in this order and is there any way to change it so that the statements are executed in the same order that I give them?

7
задан LMC 14 December 2010 в 19:47
поделиться