【发布时间】:2014-01-01 22:27:51
【问题描述】:
我正在使用来自https://github.com/oysteinkrog/SQLite.Net-PCL 的 Sqlite.net 的 PCL 版本 由于某些原因,下面的代码在 WP8 上不起作用:
var sqliteFilename = Path.Combine(ApplicationData.Current.LocalFolder.Path, "MyDB.db3");
var db = new SQLiteConnection(new SQLitePlatformWP8CSharp(), sqliteFilename);
我收到此错误:
An exception of type 'SQLite.Net.SQLiteException' occurred in SQLite.Net.DLL but was not handled in user code
Additional information: Could not open database file: C:\Data\Users\DefApps\AppData\{149B7F85-2C71-4BEF-984F-903BA7DB80DA}\Local\MyDB.db3 (CannotOpen)
我做错了什么? 谢谢!!!
【问题讨论】:
标签: sqlite windows-phone-8 portable-class-library