1
I’m building a system that can and will open on possibly two to seven computers. There is concern in the following case:
- PC1 opened the João client file and began editing.
- PC4 opened the João client’s file just to see some data.
- PC1 finished editing and saved.
- PC4 decided to make a small change in the record and saved also.
In this situation the change that will prevail is that of PC4 that saved the chip last, thus losing all data changed by PC1.
What way can I use to check if the plug is already open? Taking into account that the database is on a local network.
Is there any smart, low-performance way to do this? No database to make queries like "if (Emuso == true)".
Who knows some file, some direct communication between computers. Anyway, I accept suggestions to get around this problem.
There are N ways to have this control. Is it a desktop or web application? Which framework are you using for data access and persistence?
– Caputo
If you are a web application, you can use Application State: http://msdn.microsoft.com/en-us/library/ms178594.aspx. Please specify the type of application.
– EduardoFernandes
@Caputo Desktop, Fluent Nhibernate and Mysql
– Latrova