J
jrad
I have a dataset that contains multiple datatables.
I looked in the online help for dataset and it in the section on
thread safety, it states "All write operations should be
synchronized".
When committing changes to the database, we call:
TableAdapter.Update(DataSet.Table1);
DataSet.Table1.AcceptChanges();
Should we put a lock around both lines, or just the AcceptChanges()?
Thanks,
JR
I looked in the online help for dataset and it in the section on
thread safety, it states "All write operations should be
synchronized".
When committing changes to the database, we call:
TableAdapter.Update(DataSet.Table1);
DataSet.Table1.AcceptChanges();
Should we put a lock around both lines, or just the AcceptChanges()?
Thanks,
JR