我正在使用Sqlite3并将引用添加到我的 Windows 商店应用程序并尝试创建一个数据库,如下所示:
C:\Sqlite3>Sqlite3 mydata.db
接下来尝试从我的代码隐藏创建表,如图所示:
Try
Dim dbpath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "mydata.db")
Using db = New SQLite.SQLiteConnection(dbpath)
' Create the tables if they don't exist
db.CreateTable(Of person)()
db.Commit()
db.Dispose()
db.Close()
End Using
Dim line = New MessageDialog("Table Created")
Await line.ShowAsync()
Catch
End Try
现在它不会创建任何表并得到一个异常,如下所示
谁能告诉我我哪里错了?