Skip to content
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

Add async LoadFromQueryable #1852

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add async LoadFromQueryable #1852

wants to merge 1 commit into from

Conversation

exyi
Copy link
Member

@exyi exyi commented Sep 7, 2024

It is primarily based on the IAsyncEnumerable interface, but requires some hacks to get access to the CountAsync method.

@exyi exyi added this to the Version 5.0 milestone Sep 7, 2024
It is primarily based on the IAsyncEnumerable interface,
but requires some hacks to get access to the CountAsync method.
@exyi exyi force-pushed the LoadFromQueryableAsync branch from 94d99b9 to b22cd28 Compare September 7, 2024 10:58
return (Task<int>)countMethodGeneric.Invoke(null, new object[] { queryable, ct })!;
}

static readonly Type? ef6IDbAsyncQueryProvider = Type.GetType("System.Data.Entity.Infrastructure.IDbAsyncQueryProvider, EntityFramework"); // https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.infrastructure.idbasyncqueryprovider?view=entity-framework-6.2.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants