1、未能正确加载程序集 System.Data.SQLite.Core.1.0.91.0。
使用nuget安装Simple.Data ,默认是安装的System.Data.SQLite.Core.1.0.99.0版本,版本不一样,手动使用
PM> Update-Package System.Data.SQLite.Core -Version 1.0.91.0
强制改为91版本。
下载sqlite-netFx40-setup-bundle-x86-2010-1.0.91.0然后出现目录下有个test.exe工具,还是比较好用的。
2、SQLite数据库连接字符串Data Source=test.db;Pooling=true;FailIfMissing=false
<add name="Simple.Data.Properties.Settings.DefaultConnectionString"
connectionString="Data Source=|DataDirectory|\2016.db;Pooling=true;FailIfMissing=false" providerName="System.Data.SQLite" />
原文:http://www.cnblogs.com/yzy666/p/5159312.html