When multiple users attempt to modify data at the same time, controls need to be established in order to prevent one user's modifications from adversely affecting modifications from simultaneous users.
In general, there are three common ways to manage concurrency in a database:
How to handle "Last in wins" concurrency method in WinSchedule control? Can someone give me an example code?
try
{
this.DataAdapterForAppointments.Update( this.DataSet, WinScheduleDatabaseSupportBase.APPOINTMENTS_TABLE_NAME);
}
catch (DBConcurrencyException dbcx)
// How to handle "Last in wins" concurrency method?
// Can someone give me an example code
Thanks in advance, Lello
This question is a general one on the subject of how to properly handle data concurrency exceptions; the following MSDN article provides some guidance.
How you enforce user access restrictions is not something that the WinSchedule data binding layer gets involved with - it is a function of the data source itself.
Is not a general question because it concerns your class "WinScheduleDatabaseSupportBase" (where are missing the functions to manage concurrency). Thanks, however, for help.
Regards, Lello