Before updating scaffolding from new db dating in the 1960
You can generate the controller code, view code, or both.Before you can generate any code, run this console command on the project root.
Specifies the configuration file to use for named connection strings.
Specifies the provider invariant name of the connection string.
Specifies that the migrations configuration be overwritten when running more than once for given project.
If you prefer to use convention, just create a controller with the same name as the model, and set scaffold property to true: Edit form of a table record. This quick approach is ideal if you are only interested in having working screens and no need to customize anything.
Since dynamic scaffolding is generated at runtime, it has limitations.