4 ms·
I find this more readable. In fact, the code here looks more like this: .FilterByEvensOnly() .FilterByMinimum() .FilterByMaximum() Obviously the e
by rikkus 12y ago
I find this more readable. In fact, the code here looks more like this:
.FilterByEvensOnly()
.FilterByMinimum()
.FilterByMaximum()
Obviously the example is trivialised and the real filters are more complex, requiring joins, but the pattern gives a very readable way of writing an efficient query.
Unfortunately EF produces an unreadable query when there are a few dozen filters, but the LINQ code is readable, so there hasn't been any difficulty debugging.