Aurelius: How to retrieve Auto-incremented ID generated in the database

Try this:

oPeople := Manager.find<TPeople>.Where(Dic.People.Id = aID).Refreshing.Take(1).UniqueResult;

if you do not have a dictionary, then replace Dic.People.Id with Linq['ID']=aID.

What I try is to force the uprating of the class informations. Maybe this works :slight_smile:

Also you an activate SQL logging and see what is being executed on SQL level, see

1 Like