Entries:
Comments:
Discussions:

Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Alternate Keys in Entity Framework 7

8 minutes, 49 seconds

Download

Right click “Save as…”

In this short video Rowan takes us through the process of using alternate keys in Entity Framework 7. Here are some links for more information:

As an aside, I spent a couple of days with Rowan (and team) recording additional videos regarding Entity Framework 7 and some of the new features to look for in the coming release. Stay tuned!

Tag:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing
  • Thats one code too many for something rather simple. Good work but I think using attribute would have been great or at least a simpler syntax like something in django

  • br1br1

    I use the fluent api mostly to disable cascade deletes when there are two paths between two entities. Please make the sql team lift the restriction. It's always a hassle to do the ping pong between entities, t =>, p=> t => again, p =>, finally. I never remember if I have to start from the many or the 1 side of the relation.  I would much prefer to just call a method, if maybe less 'fluently'.

  • @ojorma - At the moment we only have the [Key] annotation for defining primary keys... but that's a good suggestion, an [AlternateKey] annotation would be useful.

  • @br1 - We'll be starting work on cascade delete support shortly, so I'll keep your feedback in mind when we design it.

Remove this comment

Remove this thread

Close

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.