How to intercept Linq filters -


in linq objects, there anyway identify entities/objects qualified/disqualified @ each filter?

for e.g) let's have entity called "product' (id , name) , if input 100 products linq query has 5 "where" conditon , 20 products output.

is there way identify product got filtered @ condition ?

this can generalized can this. don't see use case it.

use tolookup() partition queries. "disqualified" items lumped under false group , can continue query true group.

e.g.,

var numbers = enumerable.range(0, 100); var p1 = numbers.tolookup(n1 => n1 < 50);  // p1[false] -> [ 50, 51, 52, ... ] var p2 = p1[true].tolookup(n2 => n2 % 2 == 0); // p2[false] -> [ 1, 3, 5, 7, ... ] var p3 = p2[true]... // , on 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -