What are the main benefits of the Versioning feature in NHibernate?
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.
精彩评论