J
Jiho Han
I need to generatea list of columns that are "dirty" for a row to be inserted.
For an update scenario, I can compare values returned by DataRow[column,
DataRowState.Current] vs. DataRow[column, DataRowState.Original]. However,
I can't seem to find a way to do this for an insert scenario.
I've peeked at the framework's CommandBuilder code and it seems to run through
all columns except where the AllowDBNull is false but the value happens to
be null (that would mean it's dirty). But all columns of the tables I am
working with are set to AllowDBNull = True except for the PK column. That
means it will basically return all columns.
Does anyone know how to address the issue above?
Thanks
Jiho Ha
For an update scenario, I can compare values returned by DataRow[column,
DataRowState.Current] vs. DataRow[column, DataRowState.Original]. However,
I can't seem to find a way to do this for an insert scenario.
I've peeked at the framework's CommandBuilder code and it seems to run through
all columns except where the AllowDBNull is false but the value happens to
be null (that would mean it's dirty). But all columns of the tables I am
working with are set to AllowDBNull = True except for the PK column. That
means it will basically return all columns.
Does anyone know how to address the issue above?
Thanks
Jiho Ha