public void Format(SqlString text) { DetermineNumberOfPreceedingParametersForEachQuery(text); foundReturnParameter = false; parameterIndex = text.Parts.OfType<Parameter>().Select(x => x.ParameterPosition ?? -1).Union(new[] { -1 }).Max(); text.Visit(this); }
/// <summary> /// Adds an existing SqlString to this SqlStringBuilder. It does NOT add any /// prefix, postfix, operator, or wrap around this. It is equivalent to just /// adding a string. /// </summary> /// <param name="sqlString">The SqlString to add to this SqlStringBuilder</param> /// <returns>This SqlStringBuilder</returns> /// <remarks>This calls the overloaded Add(sqlString, null, null, null, false)</remarks> public SqlStringBuilder Add(SqlString sqlString) { sqlString.Visit(AddingVisitor); return(this); }
/// <summary> /// Adds an existing SqlString to this SqlStringBuilder. It does NOT add any /// prefix, postfix, operator, or wrap around this. It is equivalent to just /// adding a string. /// </summary> /// <param name="sqlString">The SqlString to add to this SqlStringBuilder</param> /// <returns>This SqlStringBuilder</returns> /// <remarks>This calls the overloaded Add(sqlString, null, null, null, false)</remarks> public SqlStringBuilder Add(SqlString sqlString) { sqlString.Visit(AddingVisitor); return this; }
public void Format(SqlString text) { text.Visit(this); }
public void Format(SqlString text) { DetermineNumberOfPreceedingParametersForEachQuery(text); foundReturnParameter = false; text.Visit(this); }
public void Format(SqlString text) { hasReturnParameter = DetermineIfSqlStringHasReturnParameter(text); text.Visit(this); }