LinqPad and Oracle/EF

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
PatrikAhlquist
Posts: 21
Joined: Thu 11 Feb 2010 08:40

LinqPad and Oracle/EF

Post by PatrikAhlquist » Thu 06 Nov 2014 22:57

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

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: LinqPad and Oracle/EF

Post by MariiaI » Mon 10 Nov 2014 07:33

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.

PatrikAhlquist
Posts: 21
Joined: Thu 11 Feb 2010 08:40

Re: LinqPad and Oracle/EF

Post by PatrikAhlquist » Tue 11 Nov 2014 06:42

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

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: LinqPad and Oracle/EF

Post by MariiaI » Tue 11 Nov 2014 06:53

Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.

Post Reply