【发布时间】:2016-04-27 19:40:29
【问题描述】:
我正在尝试让 Xamarin 表单 sqlite 运行起来。
它适用于 Android 和 iOS,但对于 Windows,我收到此错误。 我的目标是 windows phone 8.1 的解决方案并使用 Xamarin forms 1.5(我无法升级它)
我一直在关注来自 Xamarin 的 this 示例
public class SQLite_WinPhone : ISQLite
{
public SQLite_WinPhone() { }
protected override SQLite.SQLiteConnection GetConnection()
{
var sqliteFilename = "TODO.db3";
string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);
// Create the connection
var conn = new SQLite.SQLiteConnection(path);
// Return the database connection
return conn;
}
}
但到目前为止还没有运气。
你们中有人遇到过这种情况吗?
【问题讨论】:
标签: c# sqlite windows-phone-8.1 xamarin-forms