【发布时间】:2013-03-16 10:31:52
【问题描述】:
我有一个用 C# 编写的 Windows 应用程序,使用 Sqlite3 作为其数据库。我想用我的 Windows 应用程序数据库更新 Host 中的数据库。
【问题讨论】:
我有一个用 C# 编写的 Windows 应用程序,使用 Sqlite3 作为其数据库。我想用我的 Windows 应用程序数据库更新 Host 中的数据库。
【问题讨论】:
您可以使用以下代码连接到 SQLite3 数据库。
SQLiteConnection db = new SQLiteConnection("Data Source=/path/to/file.db;Version=3;");
db.Open();
如果你想指定额外的连接参数,ConnectionStrings.com 总是一个很好的资源。另外,您可以查看与您的相似的this question。
【讨论】: