If I have a parent class:
public class Parent
{
public Parent()
{
Children = new List<Child>();
}
IList<Child> Children {get; private set;}
}
and a child class like so:
public class Child
{
public SomeThirdClass Friend {get; set;}
}
Whenever I let the Fluent NHibernate's automapper hit these guys, it makes the Child
class have a non-nullable foreign key. I have altered a few automapping conventions and some overrides for certain classes, but for this particular pair only the Parent
class has an override. The override does not specify how to map the collection part for the Parent
class.
Is making a foreign key not-nullable in the child of a collection the default behavior, or have I F'ed something up?
How would one specify in a mapping override class that the child foreign key is nullable?
PEACE!