protected override SqlExpression Visit(SqlColumnExpression expression) { if (expression.Type == typeof(bool)) return new SqlBinaryExpression(SqlNodeType.Equal, expression, new SqlConstantExpression(typeof(bool), true)); return expression; }
protected virtual SqlExpression Visit(SqlColumnExpression expression) { return expression; }
protected override SqlExpression Visit(SqlColumnExpression expression) { sql.Append(expression.ColumnName); return expression; }