I am using entity structure data migration. if I changed something about entites or something else, I'm trying to use "Add-migration MyFirstMigration" in the package manager console. But it returns an exception:
The term 'add-migration' 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 inclu ded, verify that the path is correct and try again. At line:1 char:14 + add-migration <<<< + CategoryInfo : ObjectNotFound: (add-migration:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
if I remove EntityFramework.Migrations from Nuget and reinstall it, working with the same code ("add-migration MyFirstMigration", "update-database") before closing the project.
how can i fix this? Does anyone else experience this?
EDIT: It works fine on another PC, by the way ...
source share