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

umutins umut 20 Reputation points

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


not as below


Microsoft Technologies based on the .NET software framework.
3,323 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,234 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,561 questions
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.
10,166 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,156 Reputation points Microsoft Vendor

    Hi @umutins umut ,
    You cannot create an 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful