View Single Post
  #3 (permalink)  
Old March 11th, 2011, 04:42 PM
ysfkay ysfkay is offline
Authorized User
Points: 343, Level: 6
Points: 343, Level: 6 Points: 343, Level: 6 Points: 343, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default how do i retrieve primary key value after inserting new column using linq

Hello,
am asking...
is there any way I can retrieve the identity value, of a column after inserting a new database record using linq
i could i achieve this like this using stored procedure:

//insert statement
return @@identity.
how do I achieve thesame with linq

thanks
Reply With Quote