I have a PersonEntity which has a PersonID as a PK. That field is auto updated in the DB when a new person is added.
When I do something like this below, I need to know the PersonID which was created. (@@Identity basically)
PersonEntity p = new PersonEntity();
p.Name = "Ian";
p.Save();
What is p.PersonID after the save?
Cheers,
Ian