Hi Silvio, thanks for the quick response.
Let´s say my two entities are A and B, each with an Int32 Id property as entity key. To create the Referential Constraint I´ve created a property named AId (Int32) to my B entity and set the Referential Constraint as so:
Principal: A
Dependent: B
Principal Key: Id
Dependent Property: AId
I understand that from the database´s point of view this would allow more than one B entity to associate with the same A entity, which is why (I believe) DevForce throws this error:
Error 113: Multiplicity is not valid in Role 'B' in relationship 'AB'. Because the Dependent Role properties are not the key properties, the upper bound of the multiplicity of the Dependent Role must be *.
Is setting the AId property to be an Entity Key the only way to make this work? Anyway, I set the AId to be an Entity Key and now B has two Entity Keys - Id and AId - but DevForce still gives me the same Error 113.
So I tried removing the Id property from the B Entity and now everything works.
Thanks!