I have the following problem ... Visual Studio 2022 walkthrough code https://github.com/everstudybee/DatabaseTest
The walkthrough includes three projects:
- Database - Class Library
- TestProject - ASP.NET Core MVC web app
- TestProject2 - ASP.NET Core MVC web app
There are database classes for the TestProject project in the Database project. Unfortunately, after selecting the wizard, I get the following error. When I configure the controller and views manually, it all works.
When I do not separate the databases into a separate project, but everything is in one, the wizard works beautifully and creates controllers and views, as seen in the TestProject2 project.
Overall, creating a database with Add-Migration and Update-Database works fine. There is only a problem with this controller and views wizard. Maybe there is a way to do it?
