Does Enity Framework6 works with .NetCore 3.1

Sneha Vellanki 1 Reputation point
2021-11-01T18:16:07.007+00:00

We have an application that is on .Net Framework 4.7 and using EF6 to connect to Oracle DB . We are trying to convert the entire application to .Net Core 3.1 but thinking to keep EF6 .

Is it possible to work with Oracle database using EF6 with the target framework as .Net Core 3.1 ?

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,331 Reputation points
    2021-11-01T19:26:19.987+00:00

    Yes but there are issues. EF 6.3 supports working with .NET Core as a migration solution only. It is not designed to be the long term solution but rather an intermediary step on the way to EF Core. Refer to the blog article here and pay special attention to the things that won't work.

    I should point out that Oracle supports .NET Core so if that is the only rationale then move to EF Core and optionally Oracle Managed Driver for .NET Core.

    1 person found this answer helpful.
    0 comments No comments

  2. Bruce (SqlWork.com) 78,161 Reputation points Volunteer Moderator
    2021-11-04T15:08:19.04+00:00

    EF 6 was ported to .netstandard 2.1 to make it compatible with .net core applications. But to use with .net core you need a .netstandard 2.0 or 2.1 compatible driver for your provider.

    Check if oracle every made a .netstandard 2.0 driver.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.