Esempio n. 1
0
        public IEnumerable <object> Query(Type type, Dictionary <string, object> queryParameters)
        {
            Dictionary <object, object> parameters = new Dictionary <object, object>();

            foreach (string key in queryParameters.Keys)
            {
                parameters.Add(key, queryParameters[key]);
            }
            QueryOperation operation = QueryOperation.For(type, parameters);
            List <object>  results   = new List <object>();

            ForEachArc(svc =>
            {
                results.AddRange(svc.Query(operation));
            });
            return(results);
        }