![]() PrivateCache: The connection will not participate in the shared cache, even if it's enabled.NoMutex: The connection is opened in multi-threading mode.FullMutex: The connection is opened in serialized threading mode.Create: The connection will automatically create the database file if it doesn't exist.The SQLiteOpenFlag enum supports these values: In this example, the constants file specifies default SQLiteOpenFlag enum values that are used to initialize the database connection. Path.Combine(FileSystem.AppDataDirectory, DatabaseFilename) create the database if it doesn't exist ![]() ![]() Public const SQLite.SQLiteOpenFlags Flags = Public const string DatabaseFilename = "TodoSQLite.db3" The sample project includes a Constants.cs file that provides common configuration data: public static class Constants In addition to sqlite-net-pcl, you temporarily need to install the underlying dependency that exposes SQLite on each platform:Ĭonfiguration data, such as database filename and path, can be stored as constants in your app. SQLite.NET is a third-party library that's supported from the praeclarum/sqlite-net repo. ![]()
0 Comments
Leave a Reply. |