Error while running Entity Data Model Wizard

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
szaslavsky
Posts: 5
Joined: Mon 27 Jan 2014 15:49

Error while running Entity Data Model Wizard

Post by szaslavsky » Wed 29 Jan 2014 21:01

Using dotConnect for Postgres 7.2.80.0 with Visual Studio 2013. In the process of upgrading from EF 5.0 to EF 6.0.2.

I'm trying to create a new .edmx file from my database by adding a new ADO.Net Entity Data Model to my project after erasing a the EF 5.0 for the same database from the project. I'm getting the error:
Your project references the latest version of Entity Framework; however, an Entity Framework database provider compatible with this version could not be found for your data connection. Exit this wizard, install a compatible driver, and rebuild your project before performing this action. Learn more about this (link to http://msdn.microsoft.com/en-us/data/jj730568 )
When I create an empty project in an empty solution, generating the .edmx from my database works *sometimes*. It works when I've built the project prior to running the Entity Data Model Wizard, but the same thing doesn't seem to work on the project that I'm migrating from EF 5.0.

My app.config:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <section name="MPDatabase.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  </configSections>
  <entityFramework>
    <providers>
      <provider invariantName="Devart.Data.PostgreSql" type="Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServices, Devart.Data.PostgreSql.Entity, Version=7.2.80.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
    </providers>
  </entityFramework>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  </startup>
</configuration>

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Error while running Entity Data Model Wizard

Post by Shalex » Fri 31 Jan 2014 15:40

This is a problem of EDM Wizard/Designer. We also received a similar report: http://forums.devart.com/viewtopic.php?t=28786. Another problem with EDM Wizard/Designer: http://forums.devart.com/viewtopic.php?t=28770.

We recommend using Entity Developer (the Devart Entity Model item, *.edml) instead of EDM Wizard/Designer (the ADO.NET Entity Data Model, *.edmx): http://www.devart.com/entitydeveloper/ed-vs-edm.html.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Error while running Entity Data Model Wizard

Post by Shalex » Wed 26 Mar 2014 15:36

The bug with the Update Model From Database wizard in Entity Framework 6 Tools for Visual Studio 2012 and Visual Studio 2013 is fixed in the current build of dotConnect for PostgreSQL.

Post Reply