Ejemplo n.º 1
0
 void OnPageLoadComplete(object sender, EventArgs e)
 {
     SelectParameters.UpdateValues(Context, this);
     WhereParameters.UpdateValues(Context, this);
     GroupByParameters.UpdateValues(Context, this);
     OrderByParameters.UpdateValues(Context, this);
     OrderGroupsByParameters.UpdateValues(Context, this);
 }
Ejemplo n.º 2
0
        protected QueryContext CreateQueryContext(DataSourceSelectArguments arguments)
        {
            IDictionary <string, object> whereParameters         = WhereParameters.ToDictionary(_context, _owner);
            IOrderedDictionary           orderByParameters       = OrderByParameters.GetValues(_context, _owner).ToCaseInsensitiveDictionary();
            IDictionary <string, object> orderGroupsByParameters = OrderGroupsByParameters.ToDictionary(_context, _owner);
            IDictionary <string, object> selectNewParameters     = SelectNewParameters.ToDictionary(_context, _owner);
            IDictionary <string, object> groupByParameters       = GroupByParameters.ToDictionary(_context, _owner);

            return(new QueryContext(
                       whereParameters,
                       orderGroupsByParameters,
                       orderByParameters,
                       groupByParameters,
                       selectNewParameters,
                       arguments));
        }