1-1 Relation

Dec 27, 2008 at 12:16 PM
Hi,

Is there another way to create a 1:1 relation instead of going through the ChildCollection?

Best Regards,
Martin
Coordinator
Dec 29, 2008 at 12:51 AM

Hi, ChildCollections are only suitable for 1-n or n-m relationships.

For 1-1 relation ships you only need to declare a property or field of the type of the child entity and mark this property or field with the same ChildStorage and ForeignKey attributes used in the ChildCollections.

Best regards,

Andrés.