Skip to content

Instantly share code, notes, and snippets.

@thongdoan
Last active February 14, 2016 03:53
Show Gist options
  • Save thongdoan/70733e04e43668b30db2 to your computer and use it in GitHub Desktop.
Save thongdoan/70733e04e43668b30db2 to your computer and use it in GitHub Desktop.
using System.IO;
using MvvmCross.Plugins.Sqlite;
using SQLite.Net.Interop;
using SQLite.Net.Platform.WindowsPhone8;
namespace Example {
public class WP8SqliteConnectionFactory : MvxSqliteConnectionFactoryBase {
public override ISQLitePlatform CurrentPlattform => new SQLitePlatformWP8();
public override string GetPlattformDatabasePath(string databaseName) {
return Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, databaseName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment