Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public ReportingDataQuery(IReportingDataSource dataSource, IEntity entity) : this(dataSource, entity, null)
 {
     this.expression = Expression.Constant(this);
 }