HasMany's OptimisticLock Options

DavGarcia's Avatar

DavGarcia

04 Apr, 2010 02:45 PM via web

I'm trying to set turn off the OptimisticLock value on a bag, for example:

public class LoadMap : IAutoMappingOverride<Load> {
    public void Override(AutoMapping<Load> mapping) {
        mapping.HasMany(x => x.Bids).OptimisticLock.None();
    }
}

But I get an exception when creating the session that says:

The string 'none' is not a valid Boolean value.

I checked the NHibernate documentation and it seems to indicate that the proper value for OptimisticLock for collections should be true/false. http://nhforge.org/blogs/nhibernate/archive/2009/04/13/nhibernate-m... Am I doing something wrong in the automapping override?

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      What is the opposite of down?