NHibernate with TransactionScope

前端 未结 6 1527
闹比i
闹比i 2020-12-02 18:25

Can anyone give me a quick overview of using TransactionScope with NHibernate? Do I need to do anything special with the session/IEnlistmentNotification/etc. to get this to

6条回答
  •  借酒劲吻你
    2020-12-02 19:04

    According to Fabio Maulo in comments related to NH-2107:

    You can use TransactionScope and you should continue using NH's transaction too. Where you have read that the Usage of TransactionScope mean the avoid of usage of NH's transaction ?

    I would have assumed that explicit usage of NHibernate's transactions not necessary, but aparently that's best practice

提交回复
热议问题