C# .NET SQLite提供程序可以';我再也找不到我的桌子了
早年我经常跑步:C# .NET SQLite提供程序可以';我再也找不到我的桌子了,c#,.net,sqlite,system.data.sqlite,C#,.net,Sqlite,System.data.sqlite,早年我经常跑步: using (SQLiteConnection sqlite_connection = new SQLiteConnection("Data Source=" + armc.Model.Settings.dbpath + ";Version=3;New=True;Compress=True;")) { sqlite_connection.Open(); SQLiteCommand sqlite_command = sqli
using (SQLiteConnection sqlite_connection =
new SQLiteConnection("Data Source="
+ armc.Model.Settings.dbpath
+ ";Version=3;New=True;Compress=True;")) {
sqlite_connection.Open();
SQLiteCommand sqlite_command = sqlite_connection.CreateCommand();
sqlite_command.CommandText = "select * from `archive`"; // ???
SQLiteDataReader sqlite_datareader = sqlite_command.ExecuteReader();
while (sqlite_datareader.Read()) {
m_products.Add
(new Product("val", int.Parse(sqlite_datareader["value"].ToString())));
}
}
但现在我得到了:
$exception{“SQLite错误\r\n没有这样的表:存档”}System.exception{System.Data.SQLite.SQLiteException}
< >我不明白发生了什么变化,但我仍然可以使用C++ API和SQLite 2009 PROUTIL使用该SQLite,但是.NET提供者的.NET 4的某些问题出了问题。
曾试图更改数据库,另存为RSA,但似乎到目前为止什么都没有发生,esle会是什么
new SQLiteConnection("Data Source="
+ armc.Model.Settings.dbpath
+ ";Version=3;New=True;Compress=True;"))
将属性
New
设置为False
遗憾的是,与此相同,我甚至尝试将compress设置为False删除数据库文件,使用New=true
创建数据库,设置New=False
,创建表