-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Milestone
Description
Ran remove-migration twice, saw this error both times. I'm not using any HashTables or IEnumerables in my EF model.
PM> remove-migration
Removing migration '20180208204117_FixLocationId'.
Reverting model snapshot.
Done.
System.InvalidCastException: Unable to cast object of type 'System.Collections.Hashtable' to type 'System.Collections.Generic.IEnumerable`1[System.String]'.
at Microsoft.EntityFrameworkCore.Tools.OperationExecutorBase.RemoveMigration(String contextType, Boolean force)
at Microsoft.EntityFrameworkCore.Tools.Commands.MigrationsRemoveCommand.Execute()
at Microsoft.EntityFrameworkCore.Tools.Commands.CommandBase.<>c__DisplayClass0_0.<Configure>b__0()
at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
Unable to cast object of type 'System.Collections.Hashtable' to type 'System.Collections.Generic.IEnumerable`1[System.String]'.```
### Further technical details
EF Core version: 2.0.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Win10 1511
IDE: Visual Studio 2017 15.5.4