R
Randy L.
We are using a typed dataset in a singleton type scenario that is not bound
to a database. With multiple clients modifying the dataset we have
implemented a simple DataRow locking approach. The goal here is to insure
thread safety on tranactions in the dataset.
For example:
if( CurrentDataRow.RowState == DataRowState.Unchanged)
{
CurrentDataRow.Delete();
CurrentDataRow.AcceptChanges();
}
Is there a better appraoch to this? Is this enough info to get the gist of
the problem?
Thanks,
Randy L.
to a database. With multiple clients modifying the dataset we have
implemented a simple DataRow locking approach. The goal here is to insure
thread safety on tranactions in the dataset.
For example:
if( CurrentDataRow.RowState == DataRowState.Unchanged)
{
CurrentDataRow.Delete();
CurrentDataRow.AcceptChanges();
}
Is there a better appraoch to this? Is this enough info to get the gist of
the problem?
Thanks,
Randy L.