Entity framework 6 dbprovider

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
-arno-
Posts: 4
Joined: Fri 26 Nov 2010 12:56
Location: FR

Entity framework 6 dbprovider

Post by -arno- » Thu 03 Jul 2014 10:05

I have an exception when trying to use Entity framework 6 :

Exception message: The 'Instance' member of the Entity Framework provider type 'Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.4.191.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;

But my configuration is :

<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<providers>
<provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.4.191.0, Culture=neutral, PublicKeyToken=09af7300eec23701" >
</provider>
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="Devart.Data.Oracle" />
<add name="dotConnect for Oracle" invariant="Devart.Data.Oracle" description="Devart dotConnect for Oracle"
type="Devart.Data.Oracle.OracleProviderFactory, Devart.Data.Oracle, Version=8.4.191.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>


thanks to help me,

-arno-
Posts: 4
Joined: Fri 26 Nov 2010 12:56
Location: FR

Re: Entity framework 6 dbprovider

Post by -arno- » Thu 03 Jul 2014 12:58

I have found the solution : the config must be pointing to the dll Devart.Data.Oracle.Entity version 8.4.191.6 (the last 6 seems to mean EF6)
BUT : to make it work, I need to deliver the devart dlls (found in program files x86/devart/...) instead of using the ones intalled in GAC.

sdrk
Posts: 1
Joined: Wed 10 Dec 2014 10:43

Re: Entity framework 6 dbprovider

Post by sdrk » Wed 10 Dec 2014 10:46

hello arno, thanks for the solution, i was struggling for few hours to figure out what the problem was.

your tip helped a lot.

Post Reply