- Published on
- Authors
- koskila
How to fix "System.InvalidOperationException: The property 'ItemBody.AdditionalData' could not be mapped because it is of type 'IDictionary', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'." in .NET 7 and Entity Framework?
Oof. What even is this title? Descriptive - sure, maybe - but also kinda long.
Ah, okay. This article explains how to map complex data types to a SQL database when using Entity Framework. This time, I'm using Fluent API to do this....