Bug on defining association on inherited entities
Posted: Thu 13 Oct 2011 15:03
There is model:
BaseObject - abstract
-Id: Guid (Entity Key)
NamedObject: BaseObject (TPC) - abstract
-Name: String
Parent: NamedObject (TPC)
Child: NamedObject (TPC)
I trying to add 1:n association between Parent (parent class) and Child (child class) with Delete cascade and Add FK to the child class options and get this error:
"An error occured during creating constraint in storage model. Referential constraint property 'Id' association 'Parent_Child' is not mapped to any column in storage table"
BaseObject - abstract
-Id: Guid (Entity Key)
NamedObject: BaseObject (TPC) - abstract
-Name: String
Parent: NamedObject (TPC)
Child: NamedObject (TPC)
I trying to add 1:n association between Parent (parent class) and Child (child class) with Delete cascade and Add FK to the child class options and get this error:
"An error occured during creating constraint in storage model. Referential constraint property 'Id' association 'Parent_Child' is not mapped to any column in storage table"