I'd like to know if it's possible to use multiple connections (e.g. for asynchronous operations)?
I found no way how to use them (either with DataContext or directly with SQLiteConnection).
This code:
Code: Select all
SQLiteConnection conn1 = new SQLiteConnection(ConnectionString);
conn1.Open();
SQLiteConnection conn2 = new SQLiteConnection(ConnectionString);
conn2.Open();
Code: Select all
Devart.Data.SQLite.SQLiteException:
Message=Unable to open database file
Source=Devart.Data.SQLite
ErrorCode=0
StackTrace:
at . ()
at ..ctor( )
at . ( , Object , DbConnectionBase )
at . ( , , DbConnectionBase )
at . ( , DbConnectionBase )
at . (DbConnectionBase )
at . (DbConnectionBase )
at . (DbConnectionBase )
at . (DbConnectionBase )
at Devart.Common.DbConnectionBase.Open()
at Devart.Data.SQLite.SQLiteConnection.Open()
Code: Select all
Data Source=ms-appdata:///local/database.db;Read Uncommitted=true;Busy Timeout=15000;Connection Timeout=60;Foreign Key Constraints=On;Pooling=True;Max Pool Size=100;