Return id after inserted data using Linq in ASP.Net

Last Reply 4 months ago By pandeyism

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