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
EF Core throws a System.InvalidOperationException with the message:
The property 'Item.Count' could not be mapped because it is of type 'string', 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'.
However, string is a supported type, so this message seems a bit confusing (this applies to all types, string is just an example).
Describe the solution you'd like
An error message that mentions a type mismatch.
The text was updated successfully, but these errors were encountered:
Yeah, this seems like the generic message we throw when the provider's type mapping source fails to find a mapping (returns null). We should tweak the wording here.
What problem are you trying to solve?
Hi, when specifying a CLR type that does not match the SQL type, like:
EF Core throws a
System.InvalidOperationException
with the message:However,
string
is a supported type, so this message seems a bit confusing (this applies to all types,string
is just an example).Describe the solution you'd like
An error message that mentions a type mismatch.
The text was updated successfully, but these errors were encountered: