You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im getting an Exception when trying to generate a migration to drop a table
.net 6
EF Core 6.0.1
Pomelo 6.0.1
I removed a Model entity (ApplicantProduct) from the DbContext , and removed any references to it from the codebase.
when I run
add-migration dropTableApplicantProduct -context DatabaseUnitOfWork
I get a stack trace
System.ArgumentException: An item with the same key has already been added. Key: [0, Property: iUW.Models.ApplicantProduct (Dictionary<string, object>).ProductId (no field, int) Indexer Required FK Index]
I initially logged this with MySQL Pomelo, however this has been found to be an issue in EF Core itself
See this issue for full details and stack trace, with reproducible code sample.
Hi, im getting an Exception when trying to generate a migration to drop a table
.net 6
EF Core 6.0.1
Pomelo 6.0.1
I removed a Model entity (ApplicantProduct) from the DbContext , and removed any references to it from the codebase.
when I run
add-migration dropTableApplicantProduct -context DatabaseUnitOfWork
I get a stack trace
System.ArgumentException: An item with the same key has already been added. Key: [0, Property: iUW.Models.ApplicantProduct (Dictionary<string, object>).ProductId (no field, int) Indexer Required FK Index]
I initially logged this with MySQL Pomelo, however this has been found to be an issue in EF Core itself
See this issue for full details and stack trace, with reproducible code sample.
PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1613
The text was updated successfully, but these errors were encountered: