开发者

Fluent NHibernate: Version column should NOT be used for concurrency

开发者 https://www.devze.com 2023-04-02 00:42 出处:网络
Is there any way of telling fluent NHibernate not to use a column called [version] for concurrency checking?It seems to do this automagically if it finds a column called [version] - and in this case I

Is there any way of telling fluent NHibernate not to use a column called [version] for concurrency checking? It seems to do this automagically if it finds a column called [version] - and in this case I do not what it t开发者_JS百科o.


Just set up an IVersionConvention and add it to your conventions.


OK, I have found it is possible to inherit from the DefaultAutoMapConfiguration and override the IsVersion to always return false. This is effectively turning off versioning.

0

精彩评论

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

关注公众号