Exemple #1
0
        private ScriptParameters GetParameters(DataFeed feed)
        {
            var dict = new Dictionary <object, object>();

            Merge(dict, Request.QueryString);
            Merge(dict, Request.Form);
            feed.ApplyDefaultParameters(dict);

            var result = ScriptParameters.Create(dict);

            return(result);
        }
Exemple #2
0
        public DataSet ExecuteQuery(DataFeed feed, HttpRequestBase request)
        {
            var parameters = new Dictionary <object, object>();

            foreach (var key in request.QueryString.AllKeys)
            {
                parameters.Add(key, request.QueryString[key]);
            }

            var util = new DataFeedUtility(Provider);

            feed.ApplyDefaultParameters(parameters);
            return(util.ExecuteQuery(feed, ScriptParameters.Create(parameters)));
        }