Scaffold-DbContext
I have an existing database that I would like some automated way of creating Models. From https://www.entityframeworktutorial.net/efcore/create-model-for-existing-database-in-ef-core.aspx I gather that Scaffold-DbContext will do this. But when I go to run it the command is not found. What do I need to do to my PowerShell environment to make this command available? Or is there a better way?

Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 13, 2021, 4:50 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Feb 13, 2021, 12:34 AM EST
Salman BegRank #284 · 8.8K reputationPosted Feb 13, 2021, 12:43 AM EST
Satya KarkiRank #78 · 24.6K reputationPosted Feb 13, 2021, 5:18 AM EST