标签: nhibernate transactions entity-framework-4
典型情况是从一个账户到另一个账户的资金转账。整个事务应该提交或回滚。
在NHibernate或Entity Framework中执行此操作有多容易?
感谢。
答案 0 :(得分:0)
EF交易:https://msdn.microsoft.com/en-us/data/dn456843.aspx
NHibernate交易:Nhibernate session.BeginTransaction() vs. transaction.Begin()