karlchu wrote:
Anything you do with ADO.NET does not have anything to do with NHibernate anymore; except it execute in the same transaction created by NHibernate. Also, the CommandText needs to be raw SQL, System.Data.IDbCommand knows nothing about NHibernate and the mapping files.
I'm aware of that. It's raw SQL, but the problem is, that it will not be executed!
karlchu wrote:
By the way, no need to Flush() after trans.Commit(); in fact, it may cause problem. So you may want to take that out.
Removed it --> nothing changed.