Return id after inserted data using Linq in ASP.Net

Last Reply 10 months ago By pandeyism

Posted 10 months 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();