I start the first time to work with an entity designer.
How can i make an simple association between this tables.
Adresse:
Field name:string
.
.
Field: CityId:int
==================
City
Field CityId:int
Field CityName:string
Association for dummies
If there is an appropriate foreign key in your DB, the association should be generated automatically when both tables
are dropped on the designer surface.
Otherwise right-click on the designer surface, choose Add Association, set Parent (Addresse) and Child (City) class names
and the Association Properties (CityId in your example).
Judging from the example, you need the one-to-many cardinality. Press OK and the association should appear in the designer.
are dropped on the designer surface.
Otherwise right-click on the designer surface, choose Add Association, set Parent (Addresse) and Child (City) class names
and the Association Properties (CityId in your example).
Judging from the example, you need the one-to-many cardinality. Press OK and the association should appear in the designer.