is there a way to get the id of the last entry created without asking for it specifically?
I am doing this:
public async Task SaveItemAsync(tblUsers item) //change here
{
if (item == null) throw new ArgumentException(nameof(item));
await InitializeAsync();
if (item.Id == null)
{
try
{
await _table.InsertItemAsync(item);
}
catch (Exception e)
{
var message = e.Message;
}
}
else await _table.ReplaceItemAsync(item);
}
anod nothing is returned but an entry with a Id is created on the db.
How can I alter that so that the Id of the new entry is returned?