예제 #1
0
 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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
		/// <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;
		}
예제 #4
0
		public void Format(SqlString text)
		{
			text.Visit(this);
		}
예제 #5
0
		public void Format(SqlString text)
		{
			DetermineNumberOfPreceedingParametersForEachQuery(text);
			foundReturnParameter = false;
			text.Visit(this);
		}
예제 #6
0
		public void Format(SqlString text)
		{
			hasReturnParameter = DetermineIfSqlStringHasReturnParameter(text);
			text.Visit(this);
		}