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 






留言

這個網誌中的熱門文章

香港袐密行動

要老是忘記, 我更記不起