I am inserting into the database through the “AddObject(Object)” method and I wanted to get the last inserted id of that so i could insert into another table with that last created id. How would I go about doing that? Is the best way of doing this? or is there better way?
I am inserting into the database through the AddObject(Object) method and I wanted to
Share
Objectafter you call dc.SaveChanges();