entity framework - Where to run "dotnet ef scaffold" for a new console application? -


trying create new console application in visual studio accessing existing sql server database. use ef core scaffold models database.

microsoft's "getting started" instructions seem way off. suggest using nuget console , running scaffold-dbcontext "server=...." microsoft.entityframeworkcore.sqlserver

this nothing.

one source suggests running "dotnet ef dbcontext scaffold "server=....", errors out with:

categoryinfo: notspecified: (no executable f...and "dotnet-ef":string) [], remoteexception

if i'm running dotnet ef shouldn't been command prompt, rather pm console? in folder? running in project folder errors out no executable found matching "dotnet-ef". note console application (not asp) , not have project.json, etc...

did install ef nuget package ?

install-package entityframework 

https://www.nuget.org/packages/entityframework


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -