Get Newly generated ID (i.e. scopeIdentity) in Entity FrameWork

Posted by Waheed on Stack Overflow See other posts from Stack Overflow or by Waheed
Published on 2010-04-20T13:00:54Z Indexed on 2010/04/20 13:03 UTC
Read the original article Hit count: 520

Filed under:
|
|

Hi,

I am added a record in my table e.g. Orders. After adding the record i want to get the newly generated ID of the inserted record. Like SCOPEIDENTY in SQL.

But how can i do this in Entity Framework.

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework