Last post Feb 22, 2018 02:30 AM by X.Daisy
Feb 21, 2018 11:07 PM|ahmed.barbary|LINK
Problem The term 'enable-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th e spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:18 + enable-migrations
<<<< + CategoryInfo : ObjectNotFound: (enable-migrations:String) , CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException .
I work on visual studio 2015 mvc 5 entityframework 6.1.3 .
suddenly when i do enable-migrations not working also update-database and add migrations not working .
I work on windows 7 64bit . How to solve this problem please ?
Feb 22, 2018 02:30 AM|X.Daisy|LINK
First, please make sure the EntityFramework you installed in this project work well. When we create a mvc project, it doesn't install EF automatically. We need to install it manually in Package Manager.
Install-Package EntityFramework -Version 6.2.0
Maybe you can try to reinstall the EntityFramework in case there is anything wrong with the previous package.
Second, restarting Visual Studio with administrator privilege.