Пример #1
0
 public virtual SqlStringBuilder Where(IQueryFilter filter)
 {
     WhereFormat where = new WhereFormat(filter);
     where.StartNumber = NextNumber;
     _stringBuilder.Append(where.Parse());
     NextNumber = where.NextNumber;
     this.parameters.AddRange(where.Parameters);
     return(this);
 }
Пример #2
0
 public virtual SqlStringBuilder Where(AssignValue filter)
 {
     WhereFormat where         = new WhereFormat();
     where.ColumnNameFormatter = filter.ColumnNameFormatter;
     where.StartNumber         = NextNumber;
     where.AddAssignment(filter);
     _stringBuilder.Append(where.Parse());
     NextNumber = where.NextNumber;
     this.parameters.AddRange(where.Parameters);
     return(this);
 }