【发布时间】:2014-10-07 19:51:59
【问题描述】:
预定义数据库 (.db) 应该添加到哪里以及如何在 windows phone 8.1 应用程序中使用它? 我没有在我的应用程序中使用 Silverlight。 我试图做这样的事情
public MainPage()
{
this.InitializeComponent();
this.NavigationCacheMode = NavigationCacheMode.Required;
CopyDatabase();
}
private void CopyDatabase()
{
IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication();
String DBFile = "myDB.sqlite";
if (!ISF.FileExists(DBFile)) CopyFromContentToStorage(ISF, "Assets/myDB.sqlite", DBFile);
}
显示找不到命名空间名称 IsolatedStorageFile。 我在 Windows-phone-8.0 的示例数据库应用程序中找到了这些代码,我试图在 Windows-phone-8.1(没有 Silverlight)中做同样的事情。
【问题讨论】:
标签: sqlite visual-studio-2013 windows-phone-8.1