Die Kombination von zwei Ausdrücken (Ausdruck<U<T, bool>>)

Habe ich zwei Ausdrücke vom Typ Expression<Func<T, bool>> und ich will zu nehmen, ODER, UND, oder, NICHT, diese und erhalten einen neuen Ausdruck der gleichen Art

Expression<Func<T, bool>> expr1;
Expression<Func<T, bool>> expr2;

...

//how to do this (the code below will obviously not work)
Expression<Func<T, bool>> andExpression = expr AND expr2
Sehr nützlicher post hab ich von Google: LINQ to Entities: Kombination von Prädikaten

InformationsquelleAutor BjartN | 2009-01-19

Schreibe einen Kommentar