Return id after inserted data using Linq in ASP.Net

Last Reply one year ago By pandeyism

Posted one year ago

hello,

i am inserting data in LinQ it works i want to return the inserted identity value after insertion in linq

this is my mehtod

db.users.Add(products);
db.SaveChanges();