Hi,
I have the following situation:
1) Create an OracleConnection (or an IDbConnection)
2) Create an OracleTransaction (or an IDbTransaction)
3) Execute a command in that transaction's context
4) Create an NHibernate ISession using the IDbConnection (ISessionFactory.OpenSession(IDbConnection))
5) Save some entity using NHibernate's Session (ISession.Save(Object))
6) Commit the transaction (IDbTransaction or NHibernate.ITransaction)
This doesn't work! I get an error (in step 5) complaining about a Transaction that's not associated with the Command object.
So, how can i create an IDbTransaction and share that transaction with NHibernate? This must be possible, right?
Regards...
|