Hi
I'm trying to create a one-to-many association between two tables, Parent and Child.
The Parent's key consists of 2 integer fields.
When manualy creating the association, i get an error saying:
Properties referred by the Dependent Role Children must be a subset of the key of the EntityType TestModel.Child referred to by the Dependent Role in the referential constraint for Relationship TestModel.Assoc1
Can anyone explain this error?
Thanks,
Ofer
Error creating an association
Does Child Key also have two properties - the same that the Parent one has?
If these properties are different then this should be the reason of the problem.
Alex James gives an explanation at Stackoverflow here:
http://stackoverflow.com/questions/1009 ... -subset-of
Please send me (support * devart * com, subject "EF: Composite FK") the script of your tables if this is not the case.
If these properties are different then this should be the reason of the problem.
Alex James gives an explanation at Stackoverflow here:
http://stackoverflow.com/questions/1009 ... -subset-of
Please send me (support * devart * com, subject "EF: Composite FK") the script of your tables if this is not the case.