Seeding my new database with some data as follows:
StratumDN Morphemic =
// preload morphemic the
EmeDN Mthe =
Mthe.IsOn = Morphemic;
When I try to save the Morphemic stratum entity after adding 'the' to its list of Morphemes, I get the following error:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_trtlStratumDNHasOnIt_idStratObjectDN". The conflict occurred in database "C:\DOCUMENTS (etc) .MDF", table "dbo.tlStratObjectDN", column 'Id. The statement
has been terminated.
A Stratum can have several kinds of objects on it, not just emes. So each object that it can have (including EmeDN) inherits from StratObjectDN. Specifically, they all inherit the RefName field which is nonnullable.
I tried a simple example of inheritance and bi-reference on the example database and did not get this error. Any ideas as to what might be wrong?