While I’ve been working with Version 1 of the Entity Framework I, amongst others, became very frustrated when trying to update foreign keys. I realise that this article is probably out of date now as EF 4.0 was released a couple of weeks ago, which allows you access to foreign keys. Never the less, there [...]
Archive for the ‘Entity Framework’ Category
Saving Entities with References in Entity Framework using Extension Methods
Posted: 29th April 2010 in Entity Framework, LINQ to Entity0
Problem : You have two database tables which map on a one to one relationship with the same primary key. In turn, both of these table have foreign key relationships to other, different, tables. If you had control over the database, you would probably move all the columns into the same table. However, in this [...]