摘要:
Continuing the Dynamic LINQ series, here are some hopefuly useful methods for performing LINQ queries inIQueryableorIQueryable<T>object, withStringparameters. The available methods, so far, are: GroupBy OrderBy Skip Take WhereEquals WhereNotEquals1publicstaticclassQueryableExtensions2{3publics 阅读全文
posted @ 2011-04-10 17:50
尚書
阅读(1197)
评论(0)
推荐(0)
摘要:
How to implement basic logical operations (AND, OR, NOT, XOR) with LINQ expressions:1publicstaticclassExpressionExtensions2{3publicstaticExpression<Func<T,Boolean>>Or<T>(thisExpression<Func<T,Boolean>>expr,Expression<Func<T,Boolean>>other)4{5InvocationExpres 阅读全文
posted @ 2011-04-10 17:12
尚書
阅读(260)
评论(0)
推荐(0)
浙公网安备 33010602011771号