by Srikanth M
17. May 2011 01:02
Relationship/Association
A relationship can be any of these types
- · One – One
- · One – Many (Also called Parent – Child relationship)
- · Many – Many
A relationship contains two ends. Each end is marked with multiplicity also called relationship cardinality. Multiplicity defines number of entities that participate in the relationship from each side. Multiplicity can be defined using the following symbols.
- 1 (One)
- * (Many)
- 0..1 (Zero or One)
An association defines a relationship between two entity types. The below picture shows a one-to-many relationship between Contact and Address entity. The below pictures shows how Entity Framework defines the relationship we have seen earlier.....[More]