Пример #1
0
        public override Expression <Func <T, bool> > ToExpression()
        {
            var expr1 = spec1.ToExpression();
            var expr2 = spec2.ToExpression();

            return(expr1.AndAlso(expr2));
        }
Пример #2
0
        public override Expression <Func <T, bool> > ToExpression()
        {
            var expr1 = _spec1.ToExpression();
            var expr2 = _spec2.ToExpression();

            return(expr1.OrElse(expr2));
        }
Пример #3
0
        public override Expression <Func <T, bool> > ToExpression()
        {
            var expr = spec.ToExpression();

            return(Expression.Lambda <Func <T, bool> >(Expression.Not(expr.Body), expr.Parameters));
        }