We have 2 classes, Parent and Child
The parent has no reference to the child, the child has the following defined in its fluent mapping:
References(x => x.Parent, "Parent_id").Not.Nullable();
When the parent record is deleted, the following error is generated:
The DELETE statement conflicted with the REFERENCE constraint "FKFF68C21EE06905B9". The conflict occurred in database "DatabaseName", table "dbo.tblChild", column 'Parent_id'.
The statement has been terminated.
What would be the correct mapping to enable the deletion of the parent, given that the parent model has no property collection of type child?