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
.NET 6 introduces the MaxBy and MinBy APIs. I would like to query the database using these methods, more specifically the async version.
MaxBy
MinBy
I am proposing to add the following methods to EntityFrameworkQueryableExtensions:
EntityFrameworkQueryableExtensions
public static Task<TSource> MaxByAsync<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> selector, CancellationToken cancellationToken = default); public static Task<TSource> MinByAsync<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> selector, CancellationToken cancellationToken = default);
I am happy to provide a PR as soon as I get feedback on this issue.
The text was updated successfully, but these errors were encountered:
Duplicate of #25566.
Sorry, something went wrong.
@ajcvickers I saw that issue but decided my issue was different, as I am proposing to add async versions. My apologies for raising a duplicate.
@CollinAlpert Sync and async should be done at the same time.
No branches or pull requests
.NET 6 introduces the
MaxBy
andMinBy
APIs. I would like to query the database using these methods, more specifically the async version.I am proposing to add the following methods to
EntityFrameworkQueryableExtensions
:I am happy to provide a PR as soon as I get feedback on this issue.
The text was updated successfully, but these errors were encountered: