简体   繁体   English

在Visual Studio 2012或更高版本中使用Npgsql和Entity Framework的MVC4

[英]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 contextThe 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数据提供程序。

  1. Have you installed the Professional edition of dotConnect for PostgreSQL? 您是否已经安装了适用于PostgreSQL的dotConnect专业版? You can check your current edition via the Tools > PostgreSQL > About menu of Visual Studio. 您可以通过Visual Studio的“工具”>“ PostgreSQL”>“关于”菜单检查当前版本。 Only Professional edition includes the Entity Framework support: http://www.devart.com/dotconnect/postgresql/editions.html . 仅专业版包含实体框架支持: http : //www.devart.com/dotconnect/postgresql/editions.html
  2. Using Devart PgSqlExtendedMembership Provider in ASP.NET MVC 4 Application: http://www.devart.com/dotconnect/postgresql/docs/?ExtendedMembership-Tutorial.html . 在ASP.NET MVC 4应用程序中使用Devart PgSqlExtendedMembership Provider: http : //www.devart.com/dotconnect/postgresql/docs/ ?ExtendedMembership-Tutorial.html。
  3. If you have any questions about dotConnect for PostgreSQL, please contact us via http://www.devart.com/company/contactform.html . 如果您对dotConnect for PostgreSQL有任何疑问,请通过http://www.devart.com/company/contactform.html与我们联系。

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

相关问题 使用Studio和实体框架进行Visual Studio 2012测试 - Visual Studio 2012 testing with csla and entity framework 无法在visual studio 2012中打开mvc4项目? - Can not open mvc4 project in visual studio 2012? 具有MVC4的实体框架5 - Entity Framework 5 with MVC4 使用MVC4 +实体框架更新模型4 - Updating Model using MVC4 + Entity Framework 4 如何为Visual Studio 2012 MVC实体框架项目添加Oracle服务器? - How to add an Oracle Server for a Visual Studio 2012 MVC Entity Framework Project? 哪个实体框架在 Visual Studio 2012 和 ASP.NET MVC 4 和 Windows 7 中使用? - Which Entity Framework is used in Visual Studio 2012 with ASP.NET MVC 4 with Windows 7? 使用C#,WPF,实体框架和Visual Studio 2012不会在数据库中更新数据 - Data is not updated in database, using C#,WPF, Entity framework and Visual studio 2012 如何防止Visual Studio 2012重命名成员类型(使用Entity Framework)? - How to prevent Visual Studio 2012 from renaming member types (using Entity Framework)? 具有Visual Studio 2010和Entity Framework兼容性的MS SQL Server 2012 - MS SQL Server 2012 with Visual Studio 2010 and Entity Framework compatibility 缺少实体框架连接字符串后的Visual Studio 2012 Stackoverflow - Visual Studio 2012 stackoverflow after entity framework connectionstring missing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM