EF 6 Error with DotConnect for Oracle

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
davidesharpe
Posts: 2
Joined: Sun 12 Feb 2012 23:57

EF 6 Error with DotConnect for Oracle

Post by davidesharpe » Wed 12 Feb 2014 01:27

I have recently upgraded to DevArt DotConnect for Oracle v7.9.333.0. And am also upgrading to Entity Framework 6.

I get the following Error.
The 'Instance' member of the Entity Framework provider type 'Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=7.9.333.0, Culture=neutral, PublicKeyToken=09af7300eec23701' did not return an object that inherits from 'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework providers must inherit from this class and the 'Instance' member must return the singleton instance of the provider. This may be because the provider does not support Entity Framework 6 or later; see http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
My provider setup in the config is

Code: Select all

 <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v11.0"/>
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
      <provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=7.9.333.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />      
    </providers>
  </entityFramework>
What do i need to do to address this ?

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

Re: EF 6 Error with DotConnect for Oracle

Post by Shalex » Wed 12 Feb 2014 08:31

Please replace Version=7.9.333.0 with Version=7.9.333.6 in your *.config and try again.

Post Reply