NHibernate Unique Constraint on Name and Parent Object fails because NH inserts Null
- by James
Hi,
I have an object as follows
Public Class Bin
Public Property Id As Integer
Public Property Name As String
Public Property Store As Store
End Class
Public Class Store
Public Property Id As Integer
Public Property Bins As IEnumerable(Of Bin)
End Class
I have a unique constraint in the database on Bin.Name and BinStoreID…