Hi,
I'm guessing that i should use a datasets handle concurrencies with tables. assume that when the user requests for a record and the BLL sends a dataset (or DataTable called "Customers"). Another user also request the same record thus returns another dataset with the same name "Customers". So therefore theer are two dataset of teh same name. If this is the case if the first user makes changes to a field that should notify the user 2 about the changes... How do i implement his, in my point of view i shoud link the two datasets (of the same type) so each one will sync eachother....
Is this the way to deal with concurrecies......?
TY IN advance
Loading
Kirtan PatelPosted Oct 11, 2009, 3:41 PM
Roei BarPosted Oct 11, 2009, 2:33 PM
this is a way todo the update by TimeStamp
http://www.codeproject.com/KB/aspnet/concurrentupdates.aspx
or using .NET 4
http://blogs.mscommunity.net/blogs/borissevo/archive/2008/02/27/concurrent-programming-in-c-parallel-do-method.aspx
petre ricardoPosted Oct 11, 2009, 12:32 PM
However, i'm looking for links that deals with the concurrency using code, not by designer. Typically i only use the designer to Drag and drop items to the form and to generate events on controls. all the other i do by code...so i'm not that much used to the creating connections using the designer... therefore please give links or ways to solve my concurrency issues with code : )
TY
Roei BarPosted Oct 11, 2009, 11:34 AM
http://msdn.microsoft.com/en-us/library/bb404102.aspx
Roei BarPosted Oct 11, 2009, 11:31 AM
each user has his very own instance of the DataSet, meaning that each one will have his own changes, without the other one knowing on them, until the change has been done and another request has been asked, which will contain the changes