protected override SqlBuilder In(NewArrayExpression expression, SqlBuilder sqlBuilder)
        {
            sqlBuilder += "(";

            foreach (Expression expressionItem in expression.Expressions)
            {
                ExpressionToSqlProvider.In(expressionItem, sqlBuilder);
            }

            if (sqlBuilder[sqlBuilder.Length - 1] == ',')
            {
                sqlBuilder.Remove(sqlBuilder.Length - 1, 1);
            }

            sqlBuilder += ")";

            return(sqlBuilder);
        }
Esempio n. 2
0
 private static void InnerIn(MethodCallExpression expression, SqlBuilder sqlBuilder)
 {
     ExpressionToSqlProvider.Where(expression.Arguments[0], sqlBuilder);
     sqlBuilder += " in";
     ExpressionToSqlProvider.In(expression.Arguments[1], sqlBuilder);
 }