private static void WhereLikeInternal <T>(IQuery query, Expression <Func <T, object> > propertySelector, string likeValue, Operator @operator, Like like, Case @case) { var column = propertySelector.Body.GetMemberInfo(); var predicate = $"{@case.GetSql()} {String.Format(like.GetSql(), likeValue)}"; query.AddWhere(column, typeof(T), predicate, @operator); }