private IQueryable <TResultElement> PerformProjection <TResultElement>(MapperContext mapperContext)
        {
            var rootMappingData = ObjectMappingDataFactory.ForProjection <TSourceElement, TResultElement>(
                _sourceQueryable,
                mapperContext.QueryProjectionMappingContext);

            var queryProjection = rootMappingData.MapStart();

            return(queryProjection);
        }
Exemple #2
0
 MappingPlan IProjectionPlanTargetSelector <TSource> .To <TResult>()
 {
     return(GetMappingPlan <TResult>(
                _mapperContext.QueryProjectionMappingContext,
                planContext => ObjectMappingDataFactory.ForProjection <TSource, TResult>(_exampleQueryable, planContext)));
 }