can i mix NHibernate updates with direct SQL in the same transaction
I'm wondering if it is possible to do direct 开发者_JAVA百科SQL updates of my own in the same transaction as NHibernate is using to update my persistent objects?
Yes, it's possible with ITransaction.Enlist(IDbCommand)
.
See this blog post for details.
精彩评论