dataobjects-net icon indicating copy to clipboard operation
dataobjects-net copied to clipboard

Implement new Queryable extensions from recent .NET versions

Open snaumenko-st opened this issue 1 year ago • 0 comments

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)

snaumenko-st avatar Dec 11 '24 12:12 snaumenko-st