Ejemplo n.º 1
0
        public Aggregations(Context context, SiteSettings ss, View view)
        {
            var tableType = view.ShowHistory == true
                ? Sqls.TableTypes.Normal
                : ss.TableType;

            var where = view.Where(
                context: context,
                ss: ss);
            var param = view.Param(
                context: context,
                ss: ss);

            Set(
                context: context,
                ss: ss,
                dataSet: Repository.ExecuteDataSet(
                    context: context,
                    statements: Rds.Aggregations(
                        context: context,
                        ss: ss,
                        tableType: tableType,
                        join: ss.Join(
                            context: context,
                            join: where),
                        where : where,
                        param: param)
                    .ToArray()));
        }
Ejemplo n.º 2
0
 public Aggregations(IContext context, SiteSettings ss, View view)
 {
     Set(
         context: context,
         ss: ss,
         dataSet: Rds.ExecuteDataSet(
             context: context,
             statements: Rds.Aggregations(
                 ss: ss,
                 join: ss.Join(
                     context: context,
                     withColumn: true),
                 where : view.Where(
                     context: context,
                     ss: ss)).ToArray()));
 }
Ejemplo n.º 3
0
 public Aggregations(Context context, SiteSettings ss, View view)
 {
     var where = view.Where(
         context: context,
         ss: ss);
     Set(
         context: context,
         ss: ss,
         dataSet: Rds.ExecuteDataSet(
             context: context,
             statements: Rds.Aggregations(
                 ss: ss,
                 join: ss.Join(
                     context: context,
                     join: where),
                 where : where).ToArray()));
 }
Ejemplo n.º 4
0
        public Aggregations(Context context, SiteSettings ss, View view)
        {
            var tableType = (view.ShowHistory == true)
                ? Sqls.TableTypes.NormalAndHistory
                : ss.TableType;

            var where = view.Where(
                context: context,
                ss: ss);
            Set(
                context: context,
                ss: ss,
                dataSet: Rds.ExecuteDataSet(
                    context: context,
                    statements: Rds.Aggregations(
                        ss: ss,
                        tableType: tableType,
                        join: ss.Join(
                            context: context,
                            join: where),
                        where : where).ToArray()));
        }