EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
duncansmart
Posts: 5
Joined: Tue 22 Jan 2013 11:57

EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Post by duncansmart » Thu 28 Feb 2013 18:30

The latest EF6 alpha update (today) has broken Devart.Common.Entity.DbEntityProviderServicesConfiguration - I'm getting the following error when my application starts:

Code: Select all

MissingMethodException: Method not found: 'Void System.Data.Entity.Config.DbConfiguration.AddProvider(System.String, System.Data.Entity.Core.Common.DbProviderServices)'.
   Devart.Common.Entity.DbEntityProviderServicesConfiguration..ctor() +0
   Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServicesConfiguration..ctor() +5
   MyNamespace.Data.MyDbContext..cctor() in c:\MyProject\MyDbContext.cs:32
Looks like they've removed the AddProvider method from System.Data.Entity.Config.DbConfiguration.

duncansmart
Posts: 5
Joined: Tue 22 Jan 2013 11:57

Re: EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Post by duncansmart » Thu 28 Feb 2013 19:27

Yep, DbConfiguration.AddProvider was renamed AddDbProviderServices

http://entityframework.codeplex.com/Sou ... uration.cs

duncansmart
Posts: 5
Joined: Tue 22 Jan 2013 11:57

Re: EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Post by duncansmart » Thu 28 Feb 2013 20:31

Looks like it was part of EF6 Alpha 3 released yesterday: http://blogs.msdn.com/b/adonet/archive/ ... nuget.aspx

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

Re: EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Post by Shalex » Fri 01 Mar 2013 08:38

We are working on the EF6 Alpha 3 support. The current version of dotConnect for PostgreSQL supports EF6 Alpha 2. As a temporary workaround, please use EF6 Alpha 2: run "install-package entityframework -pre -version:6.0.0.0-alpha2" via Package Mananger Console.

We will post here when the EF6 Alpha 3 support is implemented.

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

Re: EF6: MissingMethodException in DbEntityProviderServicesConfiguration

Post by Shalex » Thu 14 Mar 2013 16:39

New build of dotConnect for PostgreSQL 6.5.202 is available!
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=3&t=26197.

Post Reply