nuget package - Fail to Add Migration in ASP.NET Core 1.0 -
i trying add migrations existing models in asp.net core 1.0 web app.
when type add-migration
following result. use vs 2015 community , nuget package manager console execute commands on windows 7. upgraded powershell (from version 2.0 version 4.0). cannot understand error if can explain happens appreciate.
pm> enable-migrations enable-migrations obsolete. use add-migration start using migrations. pm> add-migration cmdlet add-migration @ command pipeline position 1 supply values following parameters: name: initmigration expression after '&' in pipeline element produced object not valid. must result in command name, script block, or commandinfo object.
for ef core, enable migrations add-migration command (as messages pretty indicate :)). try add-migration -name initmigration
see here more:https://docs.efproject.net/en/latest/miscellaneous/cli/powershell.html#add-migration
Comments
Post a Comment