I am trying to run
Scaffold-DbContext to generate some models from an old system. I am running the following command:
Scaffold-DbContext "Data Source=localhost\SQLEXPRESS;Initial Catalog=MAINT_TRAINING;Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer
The problem is that I get absolutely no output... No models, no errors, no confirmations...
The tables in the DB all have primary keys.
Am I doing something wrong?
You may be hitting issue #10298. Try adding the following to your
<PropertyGroup> <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> </PropertyGroup>