Exemple #1
0
 public ReportingDataQuery(IReportingDataSource dataSource, IEntity entity, Expression expression)
 {
     if (!typeof(T).IsAssignableFrom(entity.ClrType))
     {
         throw new ArgumentException("The underline clr type of the resource entity doesn't match the generic type T");
     }
     this.dataSource = dataSource;
     this.entity     = entity;
     this.expression = expression;
 }
Exemple #2
0
 public ReportingDataQuery(IReportingDataSource dataSource, IEntity entity, Expression expression, Expression expressionWithouSelect)
 {
     if (expressionWithouSelect == null)
     {
         throw new ArgumentNullException("expressionWithouSelect");
     }
     this.dataSource             = dataSource;
     this.entity                 = entity;
     this.expression             = expression;
     this.expressionWithouSelect = expressionWithouSelect;
 }
Exemple #3
0
 public ReportingDataQuery(IReportingDataSource dataSource, IEntity entity) : this(dataSource, entity, null)
 {
     this.expression = Expression.Constant(this);
 }