We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following fails:
_ = await context.Blogs .Select(b => new { Foo = b.BlogDetails == null ? null : new { b.BlogDetails.Id } }) .Where(x => x.Foo != null) .ToListAsync();
The expression tree after preprocessing:
[Microsoft.EntityFrameworkCore.Query.QueryRootExpression] .LeftJoin([Microsoft.EntityFrameworkCore.Query.QueryRootExpression], b => Property(b, "BlogDetailsId"), b0 => Property(b0, "Id"), (o, i) => new TransparentIdentifier`2(Outer = o, Inner = i)) .Where(b => (IIF((b.Inner == null), null, new <>f__AnonymousType1`1(Id = b.Inner.Id)) != null)) .Select(b => new <>f__AnonymousType0`1(Foo = IIF((b.Inner == null), null, new <>f__AnonymousType1`1(Id = b.Inner.Id))))
The b.Inner == null causes translation failure.
b.Inner == null
Originally flagged by @mdmoura in #21148
The text was updated successfully, but these errors were encountered:
Duplicate of #17020
Wrong title.
Sorry, something went wrong.
Comparing IIF((b.Inner == null), null, new <>f__AnonymousType11(Id = b.Inner.Id))` to null fails in translation.
IIF((b.Inner == null), null, new <>f__AnonymousType1
No branches or pull requests
The following fails:
The expression tree after preprocessing:
The
b.Inner == null
causes translation failure.Originally flagged by @mdmoura in #21148
The text was updated successfully, but these errors were encountered: