Visual Studio 2010数据源选项缺少SQLite数据库文件类型 [英] SQLite database file type missing from Visual Studio 2010 data source options

查看:311
本文介绍了Visual Studio 2010数据源选项缺少SQLite数据库文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010上安装了一个x86 / x64的官方SQLite NuGet软件包,具体步骤如下:
http://www.tsjensen.com/blog/post/2012/11/10/SQLite-on -Visual-Studio-with-NuGet-and-Easy-Instructions.aspx



我试着将ADO.NET Entity Data Model添加到项目中并添加一个新的数据库连接,但我没有看到一个SQLite



如何添加SQLite数据库文件以显示在Visual Studio数据源选项下?

解决方案

我自己在这里添加答案,因为我刚刚发现:



安装NuGet软件包后,我从这里下载了安装包Setup for 32-bit Windows(.NET Framework 4.0): http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki 。它是说,这是唯一的安装程序包,能够为Visual Studio 2010安装设计时组件。



然后在安装程序中,重要的是检查为Visual Studio 2010安装设计器组件





再次打开Visual Studio后,我在数据源选项下获得了SQLite数据库文件。 / p>

I installed a x86/x64 official SQLite NuGet package on Visual Studio 2010 by following these instructions: http://www.tsjensen.com/blog/post/2012/11/10/SQLite-on-Visual-Studio-with-NuGet-and-Easy-Instructions.aspx. Then saved and built the project.

I try then to add ADO.NET Entity Data Model into the project and add a new database connection but I don't see a SQLite Database File under the data source options.

How can I add the SQLite Database File to appear under the Visual Studio data source options?

解决方案

I add the answer here myself since I just found it out:

After installing the NuGet package, I downloaded the setup package "Setups for 32-bit Windows (.NET Framework 4.0)" from here: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki. It was saying that "This is the only setup package that is capable of installing the design-time components for Visual Studio 2010."

Then in the installer it was important to put a check on "Install the designer components for Visual Studio 2010"

After that opening Visual Studio again and I got SQLite Database File under the data source options.

这篇关于Visual Studio 2010数据源选项缺少SQLite数据库文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆