New issue
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
System.ArgumentException: must be reducible node when using Include #16987
Comments
@amosonn EF Core doesn't use IX Async anymore. |
I know; in preview5 it still did, and the point of switching to preview7 was to be able to drop IX and the bridging it required to the builtin types. |
@amosonn Can you give some more details on what you are trying to achieve? Does the query work if used in the normal manner? |
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it. BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions. |
Sorry, I was away for a while and could not respond. |
Use extension method on IQueryable which EF Core provides var enumerable = _ctx.NotarizedEvents.Include(n => n.Definition).AsAsyncEnumerable();
await using (var enumerator = enumerable.GetAsyncEnumerator()) { ... } |
This gives the exact same error as above. |
@amosonn - Since you are using Include, it may not work properly in previous previews and in all providers. |
Upgraded to preview8. Now the stack trace is:
(and we don't get this when the |
Include is not fully functional for InMemory in preview8 builds. Either use provider other than InMemory or try daily builds which has this issue fixed. You can track status of InMemory provider at #16963 |
In preview5, we used the internal
.AsAsyncEnumerable()
method and wrapped with a generator to convert theIx.IAsyncEnumerable
to the compiler one. When switching to preview7, we got this error:This works:
This doesn't:
Relevant part of entities and context:
Further technical details
EF Core version: 3.0.0-preview7
Database Provider: Npgsql.EntityFrameworkCore.PostgreSQL
Operating system: mcr.microsoft.com/dotnet/core/sdk:3.0.100-preview7
The text was updated successfully, but these errors were encountered: