How To Use Community Sqlite Plugin In Mvvmcross
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 vi
Solution 1:
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;
publicclassSqlitePluginBootstrap : MvxLoaderPluginBootstrapAction<PluginLoader, Plugin>
{
}
This solved the "plugin not registered"-error for me.
Solution 2:
Confirmed - I came across the same issue. Nuget downloads the right things, but only adds the one reference, as Jacco points out.
It doesn't add the reference to Cirrious.MvvmCross.Community.Plugins.Sqlite.Touch.dll, and it doesn't put the bootstrap in for you automatically.
I have one extra using statement in my bootstrap for MvxLoaderPluginBootstrapAction. Here's the complete code:
using Cirrious.CrossCore.Plugins;
using Cirrious.MvvmCross.Community.Plugins.Sqlite;
using Cirrious.MvvmCross.Community.Plugins.Sqlite.Touch;
publicclassSqlitePluginBootstrap : MvxLoaderPluginBootstrapAction<PluginLoader, Plugin>
{
}
Post a Comment for "How To Use Community Sqlite Plugin In Mvvmcross"