Esempio n. 1
0
 public IQueryable <TDestination> For <TDestination>(SourceInjectedQueryInspector inspector = null)
 {
     return(new SourceInjectedQuery <TSource, TDestination>(_dataSource,
                                                            new TDestination[0].AsQueryable(), _mapper, inspector));
 }
 public SourceInjectedQuery(IQueryable <TSource> dataSource, IQueryable <TDestination> destQuery, IMapper mapper, SourceInjectedQueryInspector inspector = null)
 {
     Expression  = destQuery.Expression;
     ElementType = typeof(TDestination);
     Provider    = new SourceInjectedQueryProvider <TSource, TDestination>(mapper, dataSource, destQuery)
     {
         Inspector = inspector ?? new SourceInjectedQueryInspector()
     };
 }