Page 1 of 1

Error while running Entity Data Model Wizard

Posted: Wed 29 Jan 2014 21:01
by szaslavsky
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>

Re: Error while running Entity Data Model Wizard

Posted: Fri 31 Jan 2014 15:40
by Shalex
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.

Re: Error while running Entity Data Model Wizard

Posted: Wed 26 Mar 2014 15:36
by Shalex
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.