If you are using Entity framework in Visual Studio, you might notice that EF’s cmdlet are not working in nuget console sometimes. It’s because EF module is not loaded in nuget console for some reasons.
The term ‘update-database’ is not recognized as the name of a cmdlet, function, script file, or operable program. Che
ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:16
+ update-database <<<< -script
+ CategoryInfo : ObjectNotFound: (update-database:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
You can use the following command to import the EF module.