Hi there,
With a DataRow, all you have to do to make a column 'Modified' is assign to it even if you assign to it the value that it already has. So I end up doing something like the followingin order to save unnecessary updates.
int i = 3;
if ((int)row["Ordinal", DataRowVersion.Current] != i)
{
if ((int)row["Ordinal", DataRowVersion.Original] == i)
{
row.RejectChanges();
}
else
{
row["Ordinal"] = i;
}
}
Do I need to do this with the fields of an IEntity2 or is an internal check made to discern whether a field's value has truly changed?
Cheers,
Ian.