public virtual void Visited(SqlStringLiteral stringLiteral)
 {
 }
 public virtual void Visiting(SqlStringLiteral stringLiteral)
 {
     sqlBuilder.Append(EncapsulateString(FormatString(stringLiteral.StringValue)));
 }
Example #3
0
		private SqlExpression EvalStringValue(NPathStringValue value)
		{
			SqlStringLiteral stringLiteral = new SqlStringLiteral(value.Value) ;
			return stringLiteral;

			//TODO: change back when parameters are fixed

//			string paramName = GetParameterName();
//			IQueryParameter param = new QueryParameter(paramName, DbType.String, value.Value ) ;
//			ResultParameters.Add(param);
//			SqlParameter sqlParam = select.AddSqlParameter(paramName, DbType.String, value.Value) ;
//			return sqlParam ;
		}