visual studio 2013 配置 ef+pgsql

环境:VS2013,WIN7



准备工作

1、有哪些供应商提供EF6的支持?

  可以看msdn给出的答案:Which providers are available for EF6?

  在本文使用 Devart dotConnect Data Providers

2、下载postgresql-9.4.4-1-windows-x64.exe并安装

3、下载dotConnect for PostgreSQL 7.3 Express并安装



开发

1、新建MVC项目

2、添加引用:D:\Program Files (x86)\Devart\dotConnect\PostgreSQL\Entity\EF6\Devart.Data.PostgreSql.Entity.dll

  右键查看属性

  可以看到版本号是 7.3.447.6,版本号在第3点用到

3、替换web.config 中entityFramework片段为下面内容:

  

<entityFramework>
    <providers>
      <provider invariantName="Devart.Data.PostgreSql" type="Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServices,        Devart.Data.PostgreSql.Entity, Version=7.3.447.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
    </providers>
</entityFramework>

4、项目右键-Add-New Item-ADO.NET Entity Data Model-Generate from database-New Connection-新建PostgreSQL数据源

5、开启VS2013 Postgresql + EF之旅。

时间: 2024-08-28 15:05:34

visual studio 2013 配置 ef+pgsql的相关文章

visual studio 2013 配置开发环境

It was not possible to complete an automatic installation. This might be due to a problem with your network, proxy servers or an unsolvable installation conflict. At this point, you can continue the installation by manually downloading and installing

[Note] Build your SDL2 Environment in Visual Studio 2013 配置你的SDL2运行环境

Right key your project in "solution manager(解决方案资源管理器)", choose the "Property(属性)" option. Then select "VC++ Directionary(VC++ 目录)", and do the following things: 1.Add the path of sdl2's include folder to including directiona

OpenCV:Visual Studio 2013 Ultimate中OpenCV 2.4.8 配置

配置环境: 操作系统:Win8.1  64位 IDE平台:Visual Studio 2013 Ultimate 一.准备OpenCV 2.4.8 1.下载:从官网下载 OpenCV2.4.8:   http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.8/opencv-2.4.8.exe/download 2.解压:双击下载的opencv-2.4.8.exe解压,比如:E:\OpenCV 说明: opencv下有b

Visual Studio 2013 Xamarin for Android开发环境搭建与配置&amp;Genymotion

Xamarin是基于Mono的平台. Xamarin旨在让开发者可以用C#编写iOS, Android, Mac应用程序,也就是跨平台移动开发. 1,进入Xamarin官方网站http://xamarin.com/下载xamarin,需要填写一些信息才能下载 完成的同时会弹出所需要的资源窗口 2,根据↑给出的资源Uri,分别下载Java JDK.Android SDK.Android NDK.GTK.Xamarin for Visual Studio(如果你用Visual Studio开发就不用

如何配置visual studio 2013进行负载测试-万事开头难

声明:工作比较忙,文章写得不好,有时间再整理. 起因:最近众包平台因迁移到azure之后一直有网站慢的情况,让老板挨批了,但是测试环境一切正常,而且生产环境也没发现有卡顿和慢的情况,所以干脆来一次负载测试看看网站性能到底如何. 本来这活应该测试做,但是测试是做功能测试的,不会编程,简单会用 Loadrunner,但是还是不行. 所以没辙,我得自己上. 开发环境:visual studio 2013 1.新建web性能测试 如何录制脚本,我就不详细写了,这个网上都有. 2.新建负载测试 3.选择相

.net转PHP从零开始-配置visual studio 2013 PHP开发环境php for visual studio

作为一个.net开发者,一直在visual studio这款强大的编辑器宠爱下,其他编辑器都不会用,也用着不熟练.最近这不是转php吗,使用php编辑器很不爽,觉得还是用visual studio舒服一些. 支持visual studio的插件有php tools for visual studio和vs.php,其中php tools for visual studio更是强大一些.但是是收费的,没办法,只好寻找破解方法. php tools for visual studio破解版下载地址:

Visual Studio 2013 sqlce 配置(转)

Visual Studio 2013 把內建 SQL CE 的管理工具拿掉了 下载SQL Server Compact Toolbox by ErikEJ并安装 打开VS2013,新建一工程,在“视图>其它窗口>SQL Server Compact Toolbox”窗口中随意创建一个sqlce数据库文件并为其生成EDMX(代码优先).中途遇各种英文对话框,遇魔杀魔. 完后VS2013中已添加对SQLCE的支持,删除此工程即可.之后再新建或打开其它工程,便可直接使用SQLCE. VS 2012

Visual Studio 2013 的 curl winbuild 编译和配置

这是我的第一篇博客. curl官网:http://curl.haxx.se/ 百度百科:curl是利用URL语法在命令行方式下工作的开源文件传输工具 在网上有很多关于curl的编译方案,如: windows平台下编译curl支持https 在Windows上编译最新的CURL,含有zlib,openssl 这里介绍的是我认为最简单的winbuild方法的编译,不涉及https. 平台: win7 64位,Visual Studio 2013 工具: 1.curl-7.41.0.zip源码包:ht

Visual Studio 2013 Web开发、新增功能:“Browser Link”

微软正式发布Visual Studio 2013 RTM版,微软还发布了Visual Studio 2013的最终版本..NET 4.5.1以及Team Foundation Server 2013.下面我们体验下Visual Studio 2013 Web开发方面有哪些特性,具体可以参看http://www.asp.net/visual-studio/overview/2013/release-notes. 1..net framework 2.0/3.0/3.5/4.0/4.5/4.5.1