I use the following mapping:
public class LoadMap : IAutoMappingOverride<Load> {
public void Override(AutoMapping<Load> mapping) {
mapping.HasMany(x => x.Bids).OptimisticLock.None();
mapping.Version(x => x.Version);
}
}
But when I try to create a session, I get the following exception:
[FormatException: string "none" is not a valid boolean.]
[XmlSchemaValidationException: attribute "optimistic-lock" is invalid - the value "none" is invalid according to its data type http://www.w3.org/2001/XMLSchema:boolean '- String' none 'is not a valid boolean value.]
I am using NHibernate 2.1.2.4000 and I have used Fluent NHibernate 1.0RTM, but have tried the latest build 636 to make sure it is not something that has been fixed recently or something like that.
, , , .Bids . , , .