In a multi-user environment: How do you make sure that all customers see each other's changes? What is the best way to do this?
In the past, I created a C # application and installed it on 2 pcs. It is connected to the central SQL Express server (the client application worked with the Entity Framework Code First as ORM). When client1 added an entry to the database, this was clearly not explicit to client2. Only if client2 again took all the data (hard update), was this change visible.
Now I am looking for a solution on how this "synchronization" (?) Can or should be done. I like working with Entity Framework Code. Firstly, it would be nice if the solution could save that. Also, the application is still at a very early stage. I thought having a central database and several clients connecting to it, but I'm not sure if this is a good solution. If your suggestions or solutions require a central server application to which clients connect (and where the server application performs database processing), this is not a problem.
If possible, a basic custom solution or some basic code that shows how to always work with the latest data can be very useful!
Related questions:
- Entity Framework - notification of changes in the database (in the database)
- Entity Framework data updates in a multi-tenant environment with a central database
- Entity wireframe data context not synchronized with database?
Thanks in advance
c # database multi-user ef-code-first
juFo
source share