getting autoinc value
Posted: Fri 18 Feb 2011 13:08
Is there any reasonable way to automatically get autoinc values after inserting into table?
ds2.Groups.AddGroupsRow(...);
ds2.Groups.Update();
this reloads table completely and gets new ids obviously, but it doesn't feel good
ds2.Groups.Clear();
ds2.Groups.Fill();
there is autoinc ID field in the table
ds2.Groups.AddGroupsRow(...);
ds2.Groups.Update();
this reloads table completely and gets new ids obviously, but it doesn't feel good
ds2.Groups.Clear();
ds2.Groups.Fill();
there is autoinc ID field in the table