Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I created MVC application using the DB first approach in VS 2022, after adding the Entity Data Model to the application, the model.tt did not generate database tables as classes!

What I have tried:

I have deleted the EDM file multiple times, and re-adding it to the application just to see if the issue would be resolved. I have also updated all the application package nuggets, yet the issue persists.
Posted
Updated 4-Jun-23 23:33pm

1 solution

Check out this recent article, it will walk you through the process: Entity Framework 7 – Database First – Using EFCorePowerTools[^]
 
Share this answer
 
Comments
Uwakpeter 5-Jun-23 5:40am    
The application is a .net mvc, the above steps I suppose are for .netcore applications
Graeme_Grant 5-Jun-23 6:04am    
I understand that, it's the methodology that applies. Does not matter if it is a console app, Winforms app, or a ASP.Net / MVC app... the same technique applies.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900