예제 #1
0
        public static IIncludableJoin <TEntity, TProperty> ThenIncludeJoin <TEntity, TPreviousProperty, TProperty>(
            this IIncludableJoin <TEntity, TPreviousProperty> query,
            Expression <Func <TPreviousProperty, TProperty> > propToExpand)
            where TEntity : class
        {
            IIncludableQueryable <TEntity, TPreviousProperty> queryable = ((IncludableJoin <TEntity, TPreviousProperty>)query).GetQuery();

            return(new IncludableJoin <TEntity, TProperty>(queryable.ThenInclude(propToExpand)));
        }
예제 #2
0
        public static IIncludableJoin <TEntity, TProperty> ThenJoin <TEntity, TPreviousProperty, TProperty>(
            this IIncludableJoin <TEntity, ICollection <TPreviousProperty> > query,
            Expression <Func <TPreviousProperty, TProperty> > propToExpand)
            where TEntity : class
        {
            var queryable = ((IncludableJoin <TEntity, ICollection <TPreviousProperty> >)query).GetQuery();
            var include   = queryable.ThenInclude(propToExpand);

            return(new IncludableJoin <TEntity, TProperty>(include));
        }