开发者

can i mix NHibernate updates with direct SQL in the same transaction

开发者 https://www.devze.com 2022-12-15 12:36 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号