“工作单元”是什么意思? NHibernate 和其他 ORM 中的概念?
NHibernate 和其他 ORM 中“工作单元”概念的含义是什么?
What is the meaning of "Unit of Work" concept in NHibernate and other ORMs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这篇博文< /a>.
It is explained very well in this blog post.
工作单元是一起提交或回滚的一个或多个数据库事务:要么全部成功,要么全部失败。这就是数据库 ACID 属性的想法。
A unit of work is one or more database transactions that are either commited or rolled back together: either all succeed or all fail. It's the idea of ACID properties for databases.