Foreign Key vs. Independent Relationships - is there improvement with Entity Framework 5?

Posted by zam6ak on Stack Overflow See other posts from Stack Overflow or by zam6ak
Published on 2012-06-19T23:15:49Z Indexed on 2012/06/20 9:16 UTC
Read the original article Hit count: 211

I have read several articles and questions on concept of foreign key vs independent relationship when using Entity Framework. And I am still not 100% sure which way to go.... I would prefer not to "pollute" my domain POCOs by having a property that will be used in FK relationship when I already have a property reference to "has a" object.

My questions are (looking at you @EFTeam, @Ladislav Mrnka)

  1. are there any improvements on this subject in the upcoming Entity Framework v5?
  2. are there more advantages if I use FK instead of independent associations (particularly with code first)?

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework