Entity freamwork 6 Connect to PostgreSQL database

Source: Internet
Author: User
Tags postgresql

Original Entity freamwork 6 connect PostgreSQL database

Development environment

VS. Update 1 postgre Sql 9.4

Use procedure

1. Use NuGet to add references to Entityframework6.npgsql in your project

2. Download and install the Npgsqlddexprovider program,: https://github.com/npgsql/npgsql/releases , please download EXE file, he will help you do a lot of things. After the download is complete, close vs, install the downloaded files, after the installation is complete, click on the Tools (tool) in VS, then click Setup Npgsql dbproviderfactories, point two ok.

If you encounter problems, please refer to the official instructions: http://www.npgsql.org/doc/ddex.html

4. When you go to the new EF's ADO Data model, you can choose Postgre SQL database directly.

5. Then use it as SQL Server.

Entity freamwork 6 Connect to PostgreSQL database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.