SQLite.Net-PCL
SQLite.Net-PCL copied to clipboard
AsyncConnection Package Update Issue
Good evening!
In version 3.0.5 I was creating an Async Connection as follows:
var connectionString = new SQLiteConnectionString(DatabaseFilePath, false);
var connectionWithLock = new SQLiteConnectionWithLock(new SQLitePlatformAndroid(), connectionString);
return new SQLiteAsyncConnection(() => connectionWithLock);
After updating to 3.1.1 that's no longer possible since I don't have access to SQLite.Net.Platforms namespace anymore. How am I supposed to create a connection in Xamarin Android? Examples folder seems to be outdated.
Sincerely, Luís Fernandes
The namespace for Android is SQLite.Net.Platform.XamarinAndroid
I have a very small demo app for iOS and Android here if that helps you https://github.com/michaeldimoudis/xam-forms-sqlitenet-async
That's the thing. With the updated packages, 'Platform' is gone. After updating, I got the following packages: SQLite.Net.Async-PCL and SQLite.Net.Core-PCL.
You're probably missing the SQLite.Net-PCL nuget package
Yeah I believe that's the issue. But, I clicked 'Update' on the nuget package, and it replaced both. Async-PCL only has Net.Core-PCL has a dependency though. Should I have the 3 of them?
Same question. The SQLite.Net.Async-PCL should have brought in the SQLite.Net-PCL package.