简体   繁体   中英

Centralized sqlite database for WPF c# application

I'm trying to have a single sqlite database file which can be accessed by multiple users. I want to store this sqlite file on a NAS which is accessible for all the users on the.network. How do I pass the connection string in the SQLiteConnection() class? I've tried other methods too, but nothing gives.

This is my connection string

SQLiteConnection conn = new SQLiteConnection(@"DataSource=\\192.168.1.51/Databse/Inventory.sqlite;Version=3;",true);

That's the IP address of the NAS

Thanks

Using SQLite on.network file system or device isn't a recommended use case. You may want to find this documentation page interesting https://www.sqlite.org/useove.net.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM