简体   繁体   English

Visual Studio 2012实体框架连接中缺少SQLite数据源

[英]SQLite data source is missing in Visual Studio 2012 Entity Framework Connection

I have just updated from SQLite 1.0.8x to sqlite 1.0.94.0 to try and use with EF6. 我刚刚从SQLite 1.0.8x更新到sqlite 1.0.94.0尝试使用EF6。

When I try and add a entity data model from an existing database there is no option to select the data source as sqlite as there used to be for the older SQLite. 当我尝试从现有数据库添加实体数据模型时,没有选择将数据源选择为sqlite,就像以前的旧SQLite一样。 I have installed SQLite from Nuget and from the setup file on the SQLite website for .net4.5/VS2012. 我已经从Nuget安装了SQLite,并从SQLite网站上安装了.net4.5 / VS2012的安装文件。 I have tried reinstalling and rebooting both VS and my machine and neither worked. 我已经尝试重新安装并重新启动VS和我的机器,但都没有工作。 I have found many similar problems to this and no answers to this problem. 我发现了很多类似的问题而没有解决这个问题。 I can add a connection to an SQLite file via server explorer and navigate through the db on the tab in Visual Studio. 我可以通过服务器资源管理器添加到SQLite文件的连接,并在Visual Studio的选项卡上导航数据库。 This now existing connection does not appear when trying to add a new model in EF6, however. 但是,当尝试在EF6中添加新模型时,不会出现此现有连接。

I even found this question on SO that seems to be the same question as mine but has no answers: 我甚至发现这个问题似乎与我的问题相同,但没有答案:

SqlLite in Visual Studio 2012 installed by NuGet dosent exist in Data Source for connection 由NuGet安装的Visual Studio 2012中的SqlLite存在于数据源中以进行连接

It seems strange to me that this issue would exist with no answers/concern about it. 我觉得这个问题不存在任何答案/担忧,这对我来说似乎很奇怪。 Are people shunning the SQLite/EF6 combo? 人们回避SQLite / EF6组合吗? I had EF5 and SQLite running fine. 我的EF5和SQLite运行正常。

I know this is technically a duplicate but I do not know what else I can do. 我知道这在技术上是重复的,但我不知道我还能做什么。

I don't know if this actually solves your issue, but I had the same problem and tried pretty much every solution out there. 我不知道这是否真的解决了你的问题,但我遇到了同样的问题,并尝试了几乎所有的解决方案。

Eventually, after installing the correct packages to support VS2012, I also installed Entity Framework 6 Tools for Visual Studio 2012 & 2013 最后,在安装了正确的软件包以支持VS2012之后,我还为Visual Studio 2012和2013安装了Entity Framework 6工具

After doing so (and a restart of VS) the connection showed up in the Entity Data Model Wizard. 执行此操作(并重新启动VS)后,实体数据模型向导中显示了连接。

Hope it solves your issue as well. 希望它也能解决你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法选择SQLite数据库文件作为Visual Studio 2012中的数据源 - Cannot select SQLite Database File as data source in Visual Studio 2012 在Visual Studio 2015中缺少sqlite的ADO.NET数据源 - Missing ADO.NET data source for sqlite in Visual Studio 2015 在Visual Studio 2012中调试.NET Framework源代码? - Debug .NET Framework Source Code in Visual Studio 2012? Visual Studio Mac预览实体框架SQLite添加迁移 - Visual Studio Mac Preview Entity Framework SQLite add migration Microsoft Visual Studio 2012集成外壳程序中缺少“报表数据窗格” - “Report Data Pane” Missing in Microsoft Visual Studio 2012 Integrated Shell 在Visual Studio 2015中安装实体框架缺少支持的标签 - Installing entity framework in visual studio 2015 missing supported tags 实体框架在Visual Studio中失去对连接字符串的绑定 - Entity Framework losing binding to connection string in Visual Studio 使用Visual Studio中的实体框架的SQL Server连接问题 - Connection problem with SQL Server using Entity Framework in Visual Studio Visual Studio 2013 上缺少“Ado.Net 实体数据模型” - Missing “Ado.Net Entity Data Model” on Visual Studio 2013 Visual Studio 2015中缺少ADO网络实体数据模型 - missing ado net entity data model in visual studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM