Esempio n. 1
0
        public static SearchParameters By(string key, string value)
        {
            var searchParameters = new SearchParameters();

            searchParameters.Add(key, value);

            return searchParameters;
        }
Esempio n. 2
0
        public static SearchParameters By(string key, string value)
        {
            var searchParameters = new SearchParameters();

            searchParameters.Add(key, value);

            return(searchParameters);
        }
Esempio n. 3
0
        public static SearchParameters By(this SearchParameters parameters, string key, IEnumerable <String> values)
        {
            foreach (var value in values)
            {
                parameters.Add(key, value);
            }

            return(parameters);
        }
Esempio n. 4
0
        public static SearchParameters Or(this SearchParameters parameters, string key, IEnumerable <String> values)
        {
            var valuesArray = values as string[] ?? values.ToArray();

            if (valuesArray.Any())
            {
                parameters.Add(key, valuesArray.Aggregate((accum, next) => accum + ("," + next)).Trim(','));
            }

            return(parameters);
        }
Esempio n. 5
0
        public static SearchParameters By(string key, IEnumerable <String> values)
        {
            var searchParameters = new SearchParameters();

            foreach (var value in values)
            {
                searchParameters.Add(key, value);
            }

            return(searchParameters);
        }
Esempio n. 6
0
        public static SearchParameters By(string key, IEnumerable<String> values)
        {
            var searchParameters = new SearchParameters();

            foreach (var value in values)
            {
                searchParameters.Add(key, value);
            }

            return searchParameters;
        }
Esempio n. 7
0
        public static SearchParameters By(this SearchParameters parameters, string key, string value)
        {
            parameters.Add(key, value);

            return(parameters);
        }