My app runs locally and stores its data in a sqlite database file. I need to ensure that when one instance of the application is running, the other instance can't write to the same database file.
If I worked with the database file not through the sqlite engine, I could open it for reading and writing and not close it, but how this can be done in the sqlite engine?
And how this can be done in sqlite provider in Entity Framework?