Setting Sqlite ThreadingMode when using sqlite-net + async Setting Sqlite ThreadingMode when using sqlite-net + async sqlite sqlite

Setting Sqlite ThreadingMode when using sqlite-net + async


Ok, I had to update SQLite-Net (and SQLite-Net-PCL etc) to 2.5.

Then this option can be accessed through the platform specific implementation:

public Repository(IPlatform platform)    {        _platform = platform;        _platform.SqlitePlatform.SQLiteApi.Config(ConfigOption.Serialized);        _db = new SQLiteAsyncConnection(() =>            new SQLite.Net.SQLiteConnectionWithLock(            _platform.SqlitePlatform,            new SQLite.Net.SQLiteConnectionString(_platform.DatabasePath, true)));    }