Dependency injection is done and the associated Android or iOS class is called to generate the connection is generated.The associated view model is constructed._sqliteconnection = connectionInfo.ConnConnection Private SQLiteConnection _sqliteconnection ĬonnectionInfo connectionInfo = ().GetConnection() You can see the full class in the example solution. This is a cut down connection common code class which in turn calls down to the Android or iOS native code to get the SQLite connection. I’ve written before about the use of SQLite in writing a Xamarin MVVM application, so I’ll not go over it here in detail. I’ve re-verified that same issue this month you can see the example project and the log file. In the issue other users also report getting this error, but no action has been taken. I’ve reported this as an project issue in 2019. This is the error(s) I receive: API call with invalid database connection pointer I’ve experienced problems using it under iOS, in a multi-threaded context. SQLite-net-pcl is a NuGet that allows you to create and access a SQLite database via c# applications – I use it with Xamarin.
0 Comments
Leave a Reply. |