Scaffold-DbContext : The term 'Scaffold-DbContext' is not recognized
Scaffold-DbContext "server=localhost;port=3306;user=root;password=carlos306;database=taxi" MySql.Data.EntityFrameworkCore -OutputDir taxi -f
Scaffold-DbContext : The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ Scaffold-DbContext "server=localhost;port=3306;user=root;password=car ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Scaffold-DbContext:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Solution
Install Microsoft.EntityFrameworkCore.Tools


留言
張貼留言