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
Microsoft.EntityFrameworkCore.Query[20500]
The LINQ expression 'where (Property([e], "BlogId") == __blogId_0)' could not be translated and will be evaluated locally.
Post.BlogId Property Is a shadow foreign key to Blog Entity, and also has custom value conversion of EF Core 2.1
The error here is when we visit the Constant the type is not primitive type which TypeMapper understands. SqlTranslator does not utilize inference so we fail to translate the Constant to server and falls into client eval. If we passed in constant as is (that's what Constant expression translate too) then in this case, it could possible generate SQL literal using the type mapping with converter from left side of equality.
and
generates warning
Post.BlogId Property Is a shadow foreign key to Blog Entity, and also has custom value conversion of EF Core 2.1
with primitive type like int, sql translation works well with shadow type.
Environments:
The text was updated successfully, but these errors were encountered: