I created DB for one website and everything was working fine. For some reasons, I had to downgrade from .Net Core 6 to .Net 5 and now I'm getting errors in migration files. Screenshot of errors
How to solve this problem?
CodePudding user response:
In EF Core 6, there are overloads for both Int32
and Int64
parameters of the UseIdentityColumns
method. In EF Core 5, there is only one for Int32
. So as mentioned in the comments, you need to change 1L
to simply 1
.