How am I supposed to use the license with my ef core

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Skippermix
Posts: 4
Joined: Mon 27 Mar 2017 14:01

How am I supposed to use the license with my ef core

Post by Skippermix » Fri 20 Sep 2019 12:19

I am trying to use a licensed version
I have a Full framework 461 solution where I have one repository class library that is setup with the new SDK Csproj style but with <TargetFramework>net461</TargetFramework>

I am then trying to add the license key attribute to our connectionstring for our user [email protected]

So it looks something like

User Id=xxx;Password=xxxx;Server=xxx;Sid=xxx;Direct=True;Persist Security Info=True;License Key=*long key*

I have installed <PackageReference Include="Devart.Data.Oracle.EFCore" Version="9.7.734" />

But when I run it I get “Unknown connection string parameter 'License Key'”

How am I supposed to use this correctly?

Currently this aspnet web api solution already have an old integration to Oracle with the old EF and the wierd thing is that when I deploy my current solution without the License Key' in the connectionstring it works even though I havent installed the devart trial driver on those machines, but those machines, can it just use the same license as those drivers?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: How am I supposed to use the license with my ef core

Post by Shalex » Mon 23 Sep 2019 13:04

The current implementation of dotConnect for Oracle includes two sets of assemblies for EF Core:

1) the .NET Framework Devart.* assemblies which are shipped with installation:
* assemblies are created in C:\Program Files (x86)\Devart\dotConnect\Oracle\ , GAC 2.0 (C:\Windows\assembly\GAC_MSIL\), GAC 4.0 (C:\Windows\Microsoft.NET\assembly\GAC_MSIL\)
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... nsing.html

2) the .NET Standard (.NET Core) Devart.* assemblies which are available via NuGet:
* you can download packages from https://www.nuget.org/packages/devart.d ... cle.efcore
* licensing approach is described at https://www.devart.com/dotconnect/oracl ... ndard.html
<TargetFramework>net461</TargetFramework>

[...]

when I run it I get “Unknown connection string parameter 'License Key'”
With Target framework=.NET Framework, the first location CLR looks for the assembly is GAC. So, your development environment works with .NET Framework Devart.* assemblies (shipped with installation) instead of .NET Standard Devart.* assemblies (downloaded from NuGet).

A solution is to reinstall dotConnect for Oracle in your development environment and select the "Do not install assemblies in the GAC" option in Setup Wizard.

Post Reply