A
Alex
I still have some questions about generating a new unique identifier during
a row insert.
So far I got it only to work if I actually generate one like this prior to
the addrow/insert:
newrow["col1"] = "data";
newrow["col2ID"] = System.Guid.NewGuid()
Later doing:
myDataSet.Tables["myTable"].Rows.Add(newrow);
myAdapter.Update(myDataSet,"MyTable"); //doing an insert
I played around with MissingSchemaAction, AutoIncrement,
AutoIncrementStep,.. but no success so far.
Is there no way that the ID gets generated automaically during the insert?
a row insert.
So far I got it only to work if I actually generate one like this prior to
the addrow/insert:
newrow["col1"] = "data";
newrow["col2ID"] = System.Guid.NewGuid()
Later doing:
myDataSet.Tables["myTable"].Rows.Add(newrow);
myAdapter.Update(myDataSet,"MyTable"); //doing an insert
I played around with MissingSchemaAction, AutoIncrement,
AutoIncrementStep,.. but no success so far.
Is there no way that the ID gets generated automaically during the insert?