Search code examples
asp.net-mvcentity-framework

Add-Migrations: Value does not fall within expected range


enter image description here

This happens in the package manager console. What does the red text mean? After I run the command, the migration file is generated, but it's empty.

I can't find an answer anywhere else. I'm very frustrated. I've done a research in google but that error happens in many situations different than this one.


Solution

  • The solution to this problem was to "downgrade" Entity Framework to 6.1.3. I guess the cause was a bug with the beta version. I was using: 6.2.0 beta.

    Thank you guys for pointing this out! Thank you Gert Arnold. You rock!