Setup EF6 Code First with dotConnect for PostgreSQL 6.8.33.0

Setup EF6 Code First with dotConnect for PostgreSQL 6.8.33.0

Postby ngu » Thu 10 Oct 2013 08:42

How to setup the connection string and entity framework provider for code first development with EF6 and dotConnect 6.8.333.0?

Your blog post http://blogs.devart.com/dotconnect/entity-framework-6-support-for-oracle-mysql-postgresql-sqlite-and-salesforce.html says i have to reference revision number "6". But there is no revision 6 Devart.Data.PostgreSql assembly in the dotConnect directory. The only revision 6 assembly i found is Devart.Data.PostgreSql.Entity which i normally do not use for code first development.
ngu
 
Posts: 2
Joined: Thu 10 Oct 2013 08:37

Re: Setup EF6 Code First with dotConnect for PostgreSQL 6.8.33.0

Postby ngu » Thu 10 Oct 2013 09:13

I found out the correct setting:

Code: Select all
  <entityFramework>
    <providers>
      <provider invariantName="Devart.Data.PostgreSql" type="Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServices, Devart.Data.PostgreSql.Entity, Version=6.8.333.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
    </providers>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
  </entityFramework>
ngu
 
Posts: 2
Joined: Thu 10 Oct 2013 08:37


Return to dotConnect for PostgreSQL