Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 726
Ivan Derlich Avatar asked May 31 '26 12:05

Ivan Derlich


1 Answers

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!

like image 57
Ivan Derlich Avatar answered Jun 03 '26 03:06

Ivan Derlich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!