How to use Community SQLite plugin in MVVMCross
mvvmcross, sqlite, xamarin.ios
Solution
Okay, Nuget added a reference to the portable library. I added a reference to the Sqlite.Touch library and then altered my bootstrapper:
using Cirrious.MvvmCross.Community.Plugins.Sqlite;
using Cirrious.MvvmCross.Community.Plugins.Sqlite.Touch;
public class SqlitePluginBootstrap : MvxLoaderPluginBootstrapAction<PluginLoader, Plugin>
{
}
This solved the "plugin not registered"-error for me.
Problem
In my application I was using the old SQLite-plugin. Since MVVMCross 3.0.14 this version is deprecated and the Community.Sqlite plugin is advised. The Community plugin was added via Nuget. When trying to use the plugin without a bootstrapper, at runtime I get the error: Failed to resolve parameter for parameter connectionFactory of type ISQLiteConnectionFactory when creating... When trying to use the plugin with a bootstrapper, also at runtime, I get the error: plugin not registered for type Cirrious.MvvmCross.Community.Plugins.Sqlite How should this plugin be used? -Edit- This is my bootstrapper code: ``` using Cirrious.MvvmCross.Community.Plugins.Sqlite; public class SqlitePluginBootstrap : MvxPluginBootstrapAction<PluginLoader> { } ```