Page 1 of 1

Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension'

Posted: Tue 19 Feb 2019 22:08
by srinivaskacham
Hello,

I have downloaded latest trial version of dotConnect for Oracle components and started evaluating. But application throwing below error.

Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension' from assembly 'Devart.Data.Oracle.Entity.EFCore, Version=9.6.696.0, Culture=neutral, PublicKeyToken=09af7300eec23701' does not have an implementation.

I have referenced below dlls from installed Devart folder.

Devart.Data
Devart.Data.Oracle
Devart.Data.Oracle.Entity.EFCore
Devart.Data.Oracle.Entity.EFCore.Design



Am not sure what is missing.

Thank you in advance.

Re: Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension'

Posted: Wed 20 Feb 2019 11:39
by Shalex
Current implementation of dotConnect for Oracle includes two sets of assemblies:

a) 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

b) 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
Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension' from assembly 'Devart.Data.Oracle.Entity.EFCore, Version=9.6.696.0, Culture=neutral, PublicKeyToken=09af7300eec23701' does not have an implementation.
Assuming that target framework in properties of your project is set to .NET Core (or .NET Standard) and you are working with Devart.* assemblies downloaded from www.nuget.org:

1) use EF Core v2.2.1 (we will notify you when the build with EF Core v2.2.2 is released):
PM> uninstall-package Microsoft.EntityFrameworkCore
PM> uninstall-package Microsoft.EntityFrameworkCore.Relational
PM> uninstall-package Microsoft.EntityFrameworkCore.Tools
PM> install-package Microsoft.EntityFrameworkCore.Relational -version 2.2.1
PM> install-package Microsoft.EntityFrameworkCore.Tools -version 2.2.1

2) remove the package Devart.Data.Oracle.Entity.EFCore.Design because it is designed for EF Core 1.x: https://www.devart.com/dotconnect/oracl ... -Core.html

If this doesn't help, send us a small test project for reproducing.

Re: Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension'

Posted: Wed 20 Feb 2019 16:15
by srinivaskacham
Thank you for your reply. My application is using Core 2.1 version framework.

Could you provide the list of files to be referenced with version number in order to work with devart oracle entity framework core.

Will trial version dlls work when we deploy application in server? We are trying to evaluate before purchasing.

Thank you,

Re: Method 'Clone' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension'

Posted: Thu 21 Feb 2019 13:03
by Shalex
srinivaskacham wrote: Wed 20 Feb 2019 16:15Could you provide the list of files to be referenced with version number in order to work with devart oracle entity framework core.
Refer to our tutorials:
* https://www.devart.com/dotconnect/oracl ... -Core.html
* https://www.devart.com/dotconnect/oracl ... TCore.html

JIC: dotConnect for Oracle Professional includes Entity Developer (Add > New item > ASP.NET Core > Devart EF Core Model, *.efml) that is a visual designer (Database First / Model First) for EF Core
srinivaskacham wrote: Wed 20 Feb 2019 16:15Will trial version dlls work when we deploy application in server? We are trying to evaluate before purchasing.
Please copy C:\ProgramData\Devart\dotConnect\License\Devart.Data.Oracle.key from your development workstation to the deployment server with your application and add "license key=trial:D:\AbsolutePath\Devart.Data.Oracle.key;" to your connection string.