Skip to content

Implement new Queryable extensions from recent .NET versions #407

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

Open
snaumenko-st opened this issue Dec 11, 2024 · 0 comments
Open

Implement new Queryable extensions from recent .NET versions #407

snaumenko-st opened this issue Dec 11, 2024 · 0 comments

Comments

@snaumenko-st
Copy link

snaumenko-st commented Dec 11, 2024

Recent .NET versions introduced a bunch of new methods on Queryable, which are not currently recognized by DO

.NET 6:

MaxBy
MinBy

.NET 7

Order
OrderDescending

etc.

It'd be great if we could take advantage of these new APIs or at least use the old implementation as a fallback for them.

MaxBy(x => x.Prop) can be often replaced with OrderByDecsending(x => x.Prop).FirstOrDefault()
MinBy(x => x.Prop) <-> OrderBy(x => x.Prop).FirstOrDefault()
Order() <-> OrderBy(x => x)
OrderDescending() <-> OrderByDescending(x => x)

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

No branches or pull requests

1 participant