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))); }
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)); }