Exemple #1
0
        public IIncludableQueryable <T, TProperty> ThenInclude <T, TPreviusProperty, TProperty>(IIncludableQueryable <T, IEnumerable <TPreviusProperty> > query, Expression <Func <TPreviusProperty, TProperty> > navigationPropertyPath)
            where T : class
        {
            var efQuery = ((IEfIncludableQuerable <T, IEnumerable <TPreviusProperty> >)query).EfQuery;

            return(new EfIncludableQuerable <T, TProperty>(EntityFrameworkQueryableExtensions.ThenInclude(efQuery, navigationPropertyPath)));
        }
        public IIncludableQueryable <TEntity, TProperty> ThenInclude <TEntity, TPreviousProperty, TProperty>(
            IIncludableQueryable <TEntity, IEnumerable <TPreviousProperty> > source,
            Expression <Func <TPreviousProperty, TProperty> > navigationPropertyPath)
            where TEntity : class
        {
            var efCoreIncludableSource = new EfCoreIncludableQueryable <TEntity, IEnumerable <TPreviousProperty> >(source);
            var efCoreIncludableResult = EntityFrameworkQueryableExtensions.ThenInclude(efCoreIncludableSource, navigationPropertyPath);

            return(new EfCoreIncludableQueryable <TEntity, TProperty>(efCoreIncludableResult));
        }
 public static IQueryInclude <TEntity, TProperty> ThenInclude <TEntity, TPreviousProperty, TProperty>(this IQueryInclude <TEntity, ICollection <TPreviousProperty> > query, Expression <Func <TPreviousProperty, TProperty> > propToExpand) where TEntity : class
 {
     return(new QueryInclude <TEntity, TProperty>(EntityFrameworkQueryableExtensions.ThenInclude(query.GetQuery(), propToExpand)));
 }