1 – Is it necessary to have foreign key to obtain a Relation in Entity Framework between each entity.?
2 – I have a Language Table and many many table with a foreign key related to the language table. Is it right to add this foreign key or I should do something else ?
Ex:
Language
LangID
LangName
TableTextA
TblAID
TextInfo
LangID
TableTextB
TblBID
TextInfo
LangID
TableTextC
TblCID
TextInfo
LangID
etc …
Thanks
You can always get the Language info by using the
Linqqueries like:So setting the association is not really necessary. However I strongly recommend you to do so.