Skip to content

OptimisticLock in HasMany/HasManyToMany broken #124

NOtherDev opened this Issue Jan 22, 2012 · 0 comments

1 participant


In Fluent NHibernate 1.3, when trying to use OptimisticLock option in HasMany/HasManyToMany chain, it's not possible to set boolean value there, expected by NHibernate. Fluent NHibernate offers choosing one of options available only at entity level. Choosing any value results in XML validation error exception when creating session factory.

It is:

HasMany(x => x.Users).OptimisticLock.Version();

It should be:

HasMany(x => x.Users).OptimisticLock();

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.