Page 1 of 1

LinqPad and Oracle/EF

Posted: Thu 06 Nov 2014 22:57
by PatrikAhlquist
This might not be the right forum to ask this question, but maybe... :)
Having trouble with LinqPad and EntityFramework.

Image

Image

Image

Image

Close, but no cigarr!

Regards,
Patrik

Re: LinqPad and Oracle/EF

Posted: Mon 10 Nov 2014 07:33
by MariiaI
Please try copying the EntityFramework.dll assembly with the proper version to the directory where LINQPad is installed (e.g. the c:\Program Files (x86)\LINQPad4\ folder) and tell us about the results.

Re: LinqPad and Oracle/EF

Posted: Tue 11 Nov 2014 06:42
by PatrikAhlquist
YES!

I added EntityFramework.dll, EntityFramework.SqlServer.dll, Devart.Data.dll, Devart.Data.Oracle.dll and Devart.Data.Oracle.Entity.dll to the directory and added

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<configSections>
		<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
	</configSections>
	<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.225.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
		</DbProviderFactories>
	</system.data>
	<entityFramework>
		<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
			<parameters>
				<parameter value="v11.0" />
			</parameters>
		</defaultConnectionFactory>
		<providers>
			<provider invariantName="Devart.Data.Oracle" type="Devart.Data.Oracle.Entity.OracleEntityProviderServices, Devart.Data.Oracle.Entity, Version=8.4.225.6, Culture=neutral, PublicKeyToken=09af7300eec23701" />
			<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
		</providers>
	</entityFramework>
</configuration>
to linqpad.config (not linqpad.exe.config) and it worked!
Thank you!!

Regards,
Patrik

Re: LinqPad and Oracle/EF

Posted: Tue 11 Nov 2014 06:53
by MariiaI
Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.