/// <summary> /// 操作符匹配(自动忽略空)。 /// </summary> /// <param name="field">列,例:aa</param> /// <param name="value">内容</param> /// <param name="matchOperator">匹配操作符</param> /// <param name="op">逻辑操作符:and、or,不区分大小写。</param> /// <returns></returns> public virtual IWhereExpression Match(string field, object value, MatchOpertaors matchOperator = MatchOpertaors.Equals, string op = "and") { if (!string.IsNullOrEmpty(field)) { return(WhereIf(_dialect.PreName(field) + _dialect.MatchOperatorGrammar(EnumExtensions.GetProperty(matchOperator, "Keyword")) + "{0}", value, op)); } return(this); }
/// <summary> /// 操作符匹配(自动忽略空)。 /// </summary> /// <param name="field">列,例:aa</param> /// <param name="value">内容</param> /// <param name="matchOperator">匹配操作符</param> /// <param name="op">逻辑操作符:and、or,不区分大小写。</param> /// <returns></returns> public virtual ISelectCommandBuilder Match(string field, object value, MatchOpertaors matchOperator = MatchOpertaors.Equals, string op = "and") { _whereExpression?.Match(field, value, matchOperator, op); return(this); }
/// <summary> /// 操作符匹配(自动忽略空)。 /// </summary> /// <param name="operator">逻辑操作符。</param> /// <param name="field">列,例:aa</param> /// <param name="value">内容</param> /// <param name="matchOperator">匹配操作符</param> /// <returns></returns> public virtual ISelectCommandBuilder Match(WhereOperators @operator, string field, object value, MatchOpertaors matchOperator = MatchOpertaors.Equals) { _whereExpression?.Match(@operator, field, value, matchOperator); return(this); }