Search code examples
c#oracleasp.net-coreentity-framework-coredevart

Why Devart is not working when trying to create models from database?


I'm using Devart with Oracle database 10g and Entity Framework Core 5 and I'm trying to create the models from database with Scaffold-DbContext:

dotnet ef dbcontext scaffold "User Id=proj1;Password=proj1;Data Source=proj.pr.local:1515;" Devart.Data.Oracle.EFCore -o Models -p Project1.csproj

But I get the following error:

Unable to find provider assembly 'Devart.Data.Oracle.EFCore'. Ensure the name is correct and it's referenced by the project.

I have installed Devart.Data.Oracle.EFCore 9.14.1234 using NuGet Packages.

Why do I get this error?

Thank you.


Solution

  • Devart.Data.Oracle.EFCore is the name of the NuGet package.

    Devart.Data.Oracle.Entity.EFCore is the name of the assembly.

    Refer to https://www.devart.com/dotconnect/oracle/docs/?EFCore-Database-First-NET-Core.html.