我将 SQLite 与 Entity Framework Core (RC1) 结合使用。
我读到,SQLite supports three different threading modes: Single-thread, Multi-thread and Serialized .
我如何在运行时设置我想对我的数据库使用哪种模式?
最佳答案
Microsoft.Data.Sqlite
引用 SQLitePCRaw.bundle_e_sqlite3
NuGet 包。该包包含已使用 SQLITE_THREADSAFE=1
(序列化)编译的 SQLite 版本。 Microsoft.Data.Sqlite
目前没有公开 API 来改变这一点,System.Data.SQLite
也没有。
关于multithreading - 如何使用 Entity Framework 在 SQLite 中设置线程模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37814066/