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
Comments
Post a Comment