2
Vote

NH 3.2 mapping - ManyToOne null inversed

description

I downloaded the latest version and for ManyToOne nullable database fields are set as map.NotNullable(true) and not nullable db fields get no map.NotNullable at all, so become nullable.

This is a major bug.

comments

sigdor wrote Nov 18, 2013 at 10:31 AM

hi,

FIX:
NMG.Core.ByCode.DBColumnMapper.Reference

change this line
            if (fk.Columns.First().IsNullable)
to:
            if (!fk.Columns.First().IsNullable)