Setup EF6 Code First with dotConnect for PostgreSQL 6.8.33.0

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
ngu
Posts: 2
Joined: Thu 10 Oct 2013 08:37

Setup EF6 Code First with dotConnect for PostgreSQL 6.8.33.0

Post by 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/enti ... force.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

Post by 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>

Post Reply