Problems with adonet entity framawork and wpf

Asier 41 Reputation points
2021-10-30T16:16:01.24+00:00

Dear,

I have 1 solution made from 3 diferent proyect

1 proyect: Administrador based on windows wpf form that required .net 5.0 to work. Visual doen't allow me to use net 4.8
2) proyect: Entidades based on net framework class libraries that required .net 4.8 in order to add a ado.net entity framework model. I would like to use .net 5.0 but when I tried it, Visual doesn't allow me to add to the proyect a ado.net entity framework diagram model...

So, when I tried to launch, fails.
145223-1.png145224-2.png145146-3.png145225-4.jpg

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-11-16T11:20:14.05+00:00

    You need to use entity framework core with .net 5. Entity framework core does not support edmx but you can still create the classes for an existing database.

    https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding?tabs=dotnet-core-cli

    https://www.syncfusion.com/succinctly-free-ebooks/entity-frame-work-core-succinctly

    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.