Closed marcos-cruz closed 2 years ago
This is likely caused by a version mismatch between the installed packages. Please create a small repro project for us to investigate further.
The problem has been identified. It took a while because the Entity Framework provides no clue of the problem.
As I said, my solution works with two different database contexts. In one project I was using entity framework version 5.0.5, and in another version 3.1.4. Leaving everything in version 3.1.4 worked very well.
I have a solution that uses netcoreapp3.1 and EntityFrameworkCore 5.0.5. The solution has two database contexts: 1 for Identity and another for a bounded context of registrations.
To create the migrations of Identity I use the command below, and it runs very well.
But when I try to create the registration migrations I get the message.
This is my csproj
How do I find out what is wrong?
Include provider and version information
EF Core version: Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: netcoreapp3.1 Operating system: IDE: Visual Studio 2019 16.9.4