开发者

What are the main benefits of the Versioning feature in NHibernate?

开发者 https://www.devze.com 2022-12-28 08:50 出处:网络
In other words, what are the main reasons to use it? 开发者_Go百科ThanksVersioning is commonly used to implement a form of concurrency. In tables that can be accessed from different sources at the sa

In other words, what are the main reasons to use it?

开发者_Go百科Thanks


Versioning is commonly used to implement a form of concurrency. In tables that can be accessed from different sources at the same time, a column named version is used. Nhibernate notes down the version of an object when it reads it, and when it tries to update it, it first checks that the version hasn't changed. On updating a row, the version column is incremented.

0

精彩评论

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