public static FilterBuilder GetBuilder(Query query, SqlParameterCollection parameterlist) { FilterBuilder fb = new FilterBuilder(); fb.query = query; fb.parameterList = parameterlist; return fb; }
public void SetListSumField(string[] fieldList, Query query) { foreach (string fieldName in fieldList) { Field field = query.GetFieldByFullName(fieldName); if (field != null && !String.IsNullOrEmpty(field.SumFormula)) { ListSumField.Add(new SumField(field.FieldName, field.SumFormula)); } } }