在.Net Framework项目中使用SQLite只需要安装System.Data.SQLite.Core包
Install-Package System.Data.SQLite.Core
简单使用:
new SQLiteConnection($"Data Source =ab.db; Initial Catalog = sqlite; Integrated Security = True;")
SQLiteCommand sqliteCommand = new SQLiteCommand(sqlstr, abdb);
在UWP项目中使用SQLite只需要安装Microsoft.Data.Sqlite.Core包
Install-Package Microsoft.Data.Sqlite.Core
简单使用:
new SqliteConnection($"Filename={abdbpath}");
SqliteCommand sqliteCommand = new SqliteCommand(sqlstr, abdb);