c# - reuse group LINQ function -
I would like to reuse a linq-to-sql function, and every time I pass it to another area group by.
For example:
by group (field X); GroupBy (field); By the public Zero Group (name of the field) {returning from rows in db ....... group by name of group} it was a pseudo
Thank you!
If I correctly understand your question, then you should reproduce the LINQ method Are trying.
By doing this, you can get the results you want, without typing a whole new method:
var group1 = someEnumerable.GroupBy (o => o.fieldX ); Var Group 2 = Some Enamorable. Group by (o => o field wi);
Comments
Post a Comment