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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,369 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,604 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.
10,237 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lan Huang-MSFT 25,471 Reputation points Microsoft Vendor
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful