C#C
C#3y ago
Bonda

❔ Entity framework core Fluent API

Hi all.
I'm trying to add a migration but I get an error because EF Core can't bound constructor parameter "category" and the property "ProductCategory". I have added the required mapping in "OnModelCreating" inside my DbContext class but it doesn't seem to work. Am I missing something? I don't have any problem with other properties because their name coincide with constructor parameters.
Thank you 🙂
image.png
image.png
image.png
Was this page helpful?