Page 1 of 1

EFCore error

Posted: Wed 09 Oct 2019 21:35
by techieRaja
This is my first time with Dot Connect for Oracle in .Net Core. All my experience so far has been with .Net Framework . I have dot connect for oracle version 9.8.838 installed on my machine.

In VS2019 16.3.3, I have a .Net Standard 2.1 library to which a devart Entity Framework Core model has been added, using the wizard.
This library has following nuget packages (and all related dependencies)-

"Devart.Data.Oracle.EFCore" Version="9.8.838"
"Microsoft.EntityFrameworkCore" Version="3.0.0"
"Microsoft.EntityFrameworkCore.Relational" Version="3.0.0"
"Microsoft.EntityFrameworkCore.Tools" Version="3.0.0"
"Microsoft.Extensions.Configuration.Json" Version="3.0.0"

On running a test (from a .Net Core 3.0 NUnit test library)to get data for an entity I am getting below exception -

System.TypeLoadException: 'Method 'get_Info' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension' from assembly 'Devart.Data.Oracle.Entity.EFCore, Version=9.8.838.0, Culture=neutral, PublicKeyToken=09af7300eec23701' does not have an implementation.'

Re: EFCore error

Posted: Thu 10 Oct 2019 15:58
by Shalex
EF Core 3 is currently not supported by dotConnect for Oracle. We will notify you when the new public build with this feature is available for download.

As a workaround, please use EF Core 2.2.4. For this, leave Target framework=.NET 3.0 in the properties of your project, open NuGet Package Manager > Package Manager Console and run:
PM> uninstall-package Microsoft.EntityFrameworkCore.Relational
PM> install-package Microsoft.EntityFrameworkCore.Relational -version 2.2.4

Re: EFCore error

Posted: Thu 10 Oct 2019 18:42
by techieRaja
Thanks for the response.
For people who face this problem, below are the nuget package versions that got things working -

"Devart.Data.Oracle.EFCore" Version="9.8.838"
"Microsoft.EntityFrameworkCore" Version="2.2.6"
"Microsoft.EntityFrameworkCore.Relational" Version="2.2.6"
"Microsoft.EntityFrameworkCore.Tools" Version="2.2.6"
"Microsoft.Extensions.Configuration.Json" Version="2.2.0"

Re: EFCore error

Posted: Fri 25 Oct 2019 18:01
by Shalex
Entity Framework Core 3.0 is supported in dotConnect for Oracle v9.9.867: viewtopic.php?f=1&t=39475.