/// <summary> /// 模糊匹配(like %value%,自动忽略空或空文本)。 /// </summary> /// <param name="operator">逻辑操作符。</param> /// <param name="field">列,例:aa</param> /// <param name="value">文本内容</param> /// <returns></returns> public virtual IWhereExpression Like(WhereOperators @operator, string field, string value) { if (!string.IsNullOrEmpty(field)) { return(WhereIf(_dialect.LikeGrammar(field, true, true, false), value, @operator, p => _dialect.LikeValueFilter(p, true, true, false))); } return(this); }