When I enter an object into the DB with Linq-to-SQL can I get the id that I just inserted without making another db call? I am assuming this is pretty easy, I just don\'t k
Try this:
MyContext Context = new MyContext(); Context.YourEntity.Add(obj); Context.SaveChanges(); int ID = obj._ID;