开发者

Fluent NHibernate: Version column should NOT be used for concurrency

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜