Last active
February 14, 2016 03:53
-
-
Save thongdoan/70733e04e43668b30db2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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