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,
Entity framework 6 dbprovider
Re: Entity framework 6 dbprovider
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.
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.
Re: Entity framework 6 dbprovider
hello arno, thanks for the solution, i was struggling for few hours to figure out what the problem was.
your tip helped a lot.
your tip helped a lot.