[英]MVC4 using Npgsql and Entity Framework in Visual Studio 2012 or higher
I have VS2012 and I want to connect to postgresql with Entity Framwork (ADO.NET) but the best solution I found seems to be for VS2010. 我有VS2012,我想用实体框架(ADO.NET)连接到postgresql,但是我发现的最佳解决方案似乎是VS2010。
I followed this tutorial using VS2012 but when I build the project I get the error The name 'VSConstants' does not exist in the current context
among others. 我使用VS2012遵循了本教程,但是在构建项目时出现错误
The name 'VSConstants' does not exist in the current context
中The name 'VSConstants' does not exist in the current context
。 I cannot figure out what the error means. 我无法弄清楚错误的含义。
I even tried installing dotconnect for postgre but after installing the required libraries and adding DBfactory connection string, I still do not see .NET data provider for PostgreSQL in my data connection dialogue. 我什至尝试为postgre安装dotconnect,但是在安装所需的库并添加DBfactory连接字符串之后,在数据连接对话框中仍然看不到PostgreSQL的.NET数据提供程序。 I wonder what I am not doing right.
我想知道我做错了什么。 I am stuck here.
我被困在这里。 I hope my question is clear enough.
我希望我的问题很清楚。 Help please
请帮助
I even tried installing dotconnect for postgre but after installing the required libraries and adding DBfactory connection string, I still do not see .NET data provider for PostgreSQL in my data connection dialogue.
我什至尝试为postgre安装dotconnect,但是在安装所需的库并添加DBfactory连接字符串之后,在数据连接对话框中仍然看不到PostgreSQL的.NET数据提供程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.