本人还是挺喜欢用Sqlite,鼓捣半天终于连上了,赶紧记录一下 1.当然还是新建一个项目,还是winform, 2.Vs2012添加NoGet,点击工具--扩展和更新,搜索NoGet,安装. 3.管理NoGet程序包,从工具中选,或右键点击项目都可,搜索Sqlite,安装 4.重新编译一下程序,添加SqliteDataContext类,代码如下 /// <summary> /// 在“管理NUGET程序包”安装LINQ程序包 /// 然后使用DataContext就可以连接sqlite了 //…