public virtual void Visiting(SqlUpdateStatement updateStatement) { updateStatement.SqlUpdateClause.Accept(this); sqlBuilder.Append(" Set "); int i = 0; foreach (SqlColumn sqlColumn in updateStatement.SqlColumnList) { SqlExpression sqlExpression = (SqlExpression)updateStatement.ValueList[i]; sqlColumn.Accept(this); sqlBuilder.Append(" = "); sqlExpression.Accept(this); sqlBuilder.Append(", "); i++; } sqlBuilder.Length -= 2; updateStatement.SqlFromClause.Accept(this); updateStatement.SqlWhereClause.Accept(this); }
/// <summary> /// Visits the specified SQL expression. /// </summary> /// <param name="sqlExpression">The SQL expression.</param> /// <returns> /// Returns processed value from espression. /// </returns> string ISqlVisitor <string> .Visit(SqlExpression sqlExpression) { return(sqlExpression.Accept(this)); }