您如何处理NHibernate中的并发性? [英] How do you deal with concurrency in NHibernate?

查看:62
本文介绍了您如何处理NHibernate中的并发性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何使用NHibernate支持乐观/悲观并发?

解决方案

NHibernate默认情况下支持乐观并发.另一方面,悲观并发可以通过ISession.Lock()方法来实现.

这些问题在本文档中进行了详细的讨论. /p>

How do you support optimistic / pessimistic concurrency using NHibernate?

解决方案

NHibernate, by default, supports optimistic concurrency. Pessimistic concurrency, on the other hand, can be accomplished through the ISession.Lock() method.

These issues are discussed in detail in this document.

这篇关于您如何处理NHibernate中的并发性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆