In that order, because it is the safest.
And no, you cannot change the order. But also you never gave NHibernate any order: you simply mark entities for perseverance; NHibernate determines what to do automatically.
If you think you need more control over individual SQL operations, you can use IStatelessSession instead of a regular ISession . You lose everything that NH does automatically (lazy loading, caching, dirty tracking), but you can (should) explicitly indicate when an Insert , Delete or Update record is.
Diego mijelshon
source share