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 *.csproj
:
<PropertyGroup>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
</PropertyGroup>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With