Posts Tagged ‘EF’

Difference between “Independent association” and “Foreign key association” in Entity Framework

September 11th, 2012 No comments

I begin to understand the difference between “Independent association” and “Foreign key association” in Entity Framework Code First thanks to this article :

Advice: use both (Independent associations and Foreign key associations):

“This saves on unnecessary DB lookups, allows lazy loaking, and allows you to easily see/set the ID if you know what you want it to be. Note that having both does not change your table structure in any way.”


Categories: Entity Framework Tags: