forked from MvvmCross/MvvmCross
-
Notifications
You must be signed in to change notification settings - Fork 2
Sqlite plugin
Stuart Lodge edited this page Jun 4, 2013
·
2 revisions
On windows you need sqlite3.dll, get it from http://www.sqlite.org/download.html (Search down for sqlite-dll-win32-XXXXXX.zip).
Once you download the .zip, extract the contained sqllite3.dll and place the file under {YourConsoleOrTestProject}/bin/Debug on the filesystem. This will resolve the "Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" error.
See the following link for more info: praeclarum/sqlite-net#206
Have a class inheriting IMvxServiceConsumer Then simple call:
var m = this.GetService();
ISQLiteConnection Sqlite = m.Create("mydatabasefile");
Sqlite is an object implementing SQLiteConnection from sqlite-net, so go Check out their documentation for usage.