public DeleteCommandBuilder Clear()
 => this.Chain(() =>
 {
     CommandParameters.Clear();
     OutputFields.Clear();
     Table          = string.Empty;
     TemporaryTable = string.Empty;
     _whereBuilder.Clear();
 });
 public InsertCommandBuilder Clear()
 {
     CommandParameters.Clear();
     FieldNames.Clear();
     OutputFields.Clear();
     FieldValues.Clear();
     Table          = string.Empty;
     TemporaryTable = string.Empty;
     return(this);
 }
 public UpdateCommandBuilder Clear()
 {
     CommandParameters.Clear();
     FieldNames.Clear();
     FieldValues.Clear();
     OutputFields.Clear();
     Table          = string.Empty;
     TemporaryTable = string.Empty;
     _whereBuilder.Clear();
     return(this);
 }
Example #4
0
 public SelectCommandBuilder Clear()
 {
     _selectBuilder.Clear();
     _fromBuilder.Clear();
     _whereBuilder.Clear();
     _orderByBuilder.Clear();
     _groupByBuilder.Clear();
     _havingBuilder.Clear();
     CommandParameters.Clear();
     Distinct = false;
     Top      = null;
     return(this);
 }
Example #5
0
 public PagedSelectCommandBuilder Clear()
 {
     SelectBuilder.Clear();
     FromBuilder.Clear();
     WhereBuilder.Clear();
     OrderByBuilder.Clear();
     GroupByBuilder.Clear();
     HavingBuilder.Clear();
     CommandParameters.Clear();
     Distinct = false;
     Offset   = 0;
     PageSize = 0;
     return(this);
 }