项目中用到了sqlite数据库,需要修改其中一张表结构,但是我的VS2013无法连接SQLite类型的数据库,
到sqlite官网 http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki 看了看,发现有很多安装程序,
因为我是win7 64位系统,所以就下载了几个64位的安装,结果都不管用,最后发现只有这个管用:
Setups for 32-bit Windows (.NET Framework 4.5.1)
sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe
(10.08 MiB)
This setup package features the mixed-mode assembly and will install all the necessary runtime components and dependencies for the x86 version of the System.Data.SQLite 1.0.96.0 (3.8.8.3) package. The Visual C++ 2013 Update 2 runtime for x86 is included. The .NET Framework 4.5.1 is required.
This is the only setup package that is capable of installing the design-time components for Visual Studio 2013.
下载完成后,安装之前,先到 https://www.microsoft.com/en-us/download/confirmation.aspx?id=40762 下载vs2013对ef6的支持组件 并安装。
然后再安装这个sqlite的setup,安装时选择自定义安装,勾选核心组件、linq、ef6、vs设计器组件即可,然后下一步中一定要勾选安装vs设计器集成组件。
安装完成,重启vs2013,就可以连接sqlite数据源了。

在使用Visual Studio 2013时遇到无法连接SQLite数据库的问题,解决方法包括:从特定网址下载适用于.NET Framework 4.5.1的32位sqlite安装包,并确保安装Visual C++ 2013 Update 2运行时;另外,需要下载并安装VS2013对EF6的支持组件;安装sqlite setup时,选择自定义安装并勾选核心组件、LINQ、EF6及VS设计器组件;最后,重启VS2013即可正常连接SQLite数据源。
3万+

被折叠的 条评论
为什么被折叠?



