Problem with foreign key

Problem with foreign key



Suppose I have three modules A, B, C

I have defined some entities in module A and module B

Now I want to define one entity in module C and in that entity I will use ids of entities defined in module A & B as foreign key.

Now for some entities if I don't refer that entity I cannot create foreign key of that entity but for few entities it's allowing me to create foreign key without referring that entity.

Why this happen?

Thanks and Regards,

Suraj Borade

Hi Suraj,

If you reference an Entity A (on module C) that has a foreign key for Entity B than you can create an entity on module C with a foreign key for Entity B. Despite Entity B is not being directly referenced it is being used by another entity (so is known inside the module).

Ana Reis