Example #1
0
        public void AddConditions <T>(Expression <Func <T, bool> > values)
        {
            var whereClause = values.Body as BinaryExpression;

            var expressionConverter = new PredicateExpressionConverter();

            _andWhere.Add(expressionConverter.Convert(_fromAlias, whereClause));
        }
        public void AddConditions <TCondition>(Expression <Func <TCondition, bool> > values)
        {
            var whereClause = values.Body as BinaryExpression;

            var expressionConverter = new PredicateExpressionConverter();

            _where = expressionConverter.Convert(ParentTable, whereClause);
        }