Exemplo n.º 1
0
 public static WhereFormat GetWhereFormat(IQueryFilter filter, StringBuilder stringBuilder, int?startNumber)
 {
     WhereFormat where         = new WhereFormat(filter);
     where.ColumnNameFormatter = (c) => c;
     where.ParameterPrefix     = "@";
     where.StartNumber         = startNumber;
     stringBuilder.Append(where.Parse());
     return(where);
 }
Exemplo n.º 2
0
 public static WhereFormat GetWhereFormat(AssignValue filter, StringBuilder stringBuilder, int?startNumber)
 {
     WhereFormat where         = new WhereFormat();
     where.ColumnNameFormatter = (s) => "\"{0}\""._Format(s);
     where.ParameterPrefix     = "@";
     where.StartNumber         = startNumber;
     where.AddAssignment(filter);
     stringBuilder.Append(where.Parse());
     return(where);
 }
Exemplo n.º 3
0
 public static WhereFormat GetWhereFormat(AssignValue filter, StringBuilder stringBuilder, int?startNumber)
 {
     WhereFormat where = new WhereFormat
     {
         ColumnNameFormatter = (c) => c,
         ParameterPrefix     = "@",
         StartNumber         = startNumber
     };
     where.AddAssignment(filter);
     stringBuilder.Append(where.Parse());
     return(where);
 }