public QueryBuilder <TEntity> Like(List <string> fields, LikeConditionType likeCondition, string value, string condition = "AND") { fields.ForEach(m => { Conditions.Add(new LikeConditionQuery(condition, m, likeCondition, value)); }); return(this); }
public QueryBuilder <TEntity> Like <TField>(Expression <Func <TEntity, TField> > field, LikeConditionType likeCondition, string value, string condition = "AND") { var memberExpression = field.Body as MemberExpression; Conditions.Add(new LikeConditionQuery(condition, memberExpression.Member.Name, likeCondition, value)); return(this); }
public LikeConditionQuery(string conidtion, string columnName, LikeConditionType likeType, object value) : base(conidtion, columnName, null, value) { LikeType = likeType; }