public WhereRule(WherePriority priority, string columnName, string parameterName, MatchType match, object[] values) { this.Priority = priority; this.ColumnName = columnName; this.ParameterName = parameterName; this.Match = match; if (values != null && values.Length > 0 && (this.Match == MatchType.Like || this.Match == MatchType.NotLike)) { for (int i = 0; i < values.Length; i++) { values[i] = values[i].ToString().Escape(new String[] { @"\", @"%", @"_" }); } } this.Values = values; }
public WhereRule(WherePriority priority, MatchType match, string text) { this.Priority = priority; this.Match = match; this.Text = text; }
public void AddWhereRule(WherePriority priority, string columnName, string parameterName, MatchType match, object[] values) { this.WhereRules.Add(new WhereRule(priority, columnName, parameterName, match, values)); }
public void AddWhereRule(WherePriority priority, MatchType match, string text) { this.WhereRules.Add(new WhereRule(priority, match, text)); }