Returning the PK during a linq to sql insert

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-04-08T20:57:23Z Indexed on 2010/04/08 21:03 UTC
Read the original article Hit count: 248

Filed under:
|

I want to return the PK ID when I insert a new user via linq to sql.

how can I do this? i.e. is there anything built in or do I have to do 2 queries?

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql