Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project

umutins umut 20 Reputation points
2023-01-17T06:10:50.91+00:00

Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project FrameWork= .:Net 7.0 Please help. Thanks

FXfwU

not as below

bUABu

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
220 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,447 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,019 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 9,281 Reputation points Microsoft Employee
    2023-01-17T07:48:44.99+00:00

    Hi @umutins umut ,
    You cannot create an ADO.net Entity Data Model with a .NET Core interface, it is only possible through the .NET Framework. You need to change the target framework to .NET Framework 4.8 or lower.

    If you want to generate your model and context from the db you need to use ef core scaffolding using the tools available, cli or PMC.

    Reverse engineering is the process of scaffolding entity type classes and a DbContext class based on a database schema. It can be performed using the Scaffold-DbContext command of the EF Core Package Manager Console (PMC) tools or the dotnet ef dbcontext scaffold command of the .NET Command-line Interface (CLI) tools.

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments

0 additional answers

Sort by: Most helpful