5
Shouts

Defining Constraints in an EF4 model that don’t exist in the database : Don't Be Iffy

published 1192 days, 20 hours, 29 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 1193 days, 13 hours, 21 minutes ago
Monday, February 15, 2010 1:08:43 PM GMT Sunday, February 14, 2010 8:16:49 PM GMT

In the first version of Entity Framework, if you wanted to create a PK/FK association between entities where there was no such constraint defined in the database you have to manually edit the SSDL (and lose that edit if you update the model from db). Why would you want to do this? The typical use case is when you are stuck with a database that is poorly designed and you are not allowed to make changes to it. In Entity Framework 4, as long as the Primary Keys are defined in the db (otherwise the entitie...

category: How To | clicked: 0 | | source: thedatafarm.com | show counter code
tags: EF4, entityframework

No comments yet, be the first one to post comment.

To post your comment please login or signup