[EF6 + Oracle dotconnect] How can make SetProviderServices() compiling on previous version?

[EF6 + Oracle dotconnect] How can make SetProviderServices() compiling on previous version?

Postby downwind » Mon 21 Sep 2015 16:09

dear ladies/gentlemen
in a software I developed (working as plug in) I perform a
SetProviderServices("Devart.Data.Oracle", new Devart.Data.Oracle.Entity.OracleEntityProviderServices());


and all is ok.
This software should be reused in another project, but the above statement fails to compile with errors, due to different devart dotconnect version:
error CS1502: The best overloaded method match for 'System.Data.Entity.DbConfiguration.SetProviderServices(string, System.Data.Entity.Core.Common.DbProviderServices)' has some invalid arguments
error CS1503: Argument 2: cannot convert from 'Devart.Data.Oracle.Entity.OracleEntityProviderServices' to 'System.Data.Entity.Core.Common.DbProviderServices'



How can I get rid of it?

I don't know how to check devArt version; so I report the DLL versions:
Working:
Devart.Data.dll 5.0.1249.0
Devart.Data.Linq.dll 4.4.795.0
Devart.Data.Oracle.dll 8.4.457.0
Devart.Data.Oracle.Entity.dll 8.4.457.6
Devart.Data.Oracle.Entity.Spatials.dll 8.4.457.6
Devart.Data.Oracle.Linq.dll 4.4.795.0

Can't compile:
Devart.Data.dll 5.0.1181.0
Devart.Data.Linq.dll 4.4.727.0
Devart.Data.Oracle.dll 8.4.389.0
Devart.Data.Oracle.Entity.dll 8.4.389.0
Devart.Data.Oracle.Entity.Spatials.dll 8.4.389.0
Devart.Data.Oracle.Linq.dll 4.4.727.0

Thanks in advance!!!
Cheers
downwind
 
Posts: 19
Joined: Tue 19 May 2015 15:37

Re: [EF6 + Oracle dotconnect] How can make SetProviderServices() compiling on previous version?

Postby downwind » Tue 22 Sep 2015 07:52

Sorry guys, the environment on the newer project was set wrong. Problem has fixed.
Thanks anyway
downwind
 
Posts: 19
Joined: Tue 19 May 2015 15:37


Return to dotConnect for Oracle