Skip to content

Exception when removing migration #10921

@MisinformedDNA

Description

@MisinformedDNA

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions