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