internal ThenIncludeExpression( IApplyQueryableIncludeConfiguration <TReadModel, TPreviousProperty> source, Expression <Func <TPreviousProperty, TProperty> > navigationPropertyPath) { _source = source; _navigationPropertyPath = navigationPropertyPath; }
ThenInclude <TEntity, TPreviousProperty, TProperty>( this IApplyQueryableIncludeConfiguration <TEntity, TPreviousProperty> source, Expression <Func <TPreviousProperty, TProperty> > navigationPropertyPath) where TEntity : class, IReadModel, new() { if (source == null) { throw new ArgumentNullException(nameof(source)); } if (navigationPropertyPath == null) { throw new ArgumentNullException(nameof(navigationPropertyPath)); } return(new ThenIncludeExpression <TEntity, TPreviousProperty, TProperty>( source, navigationPropertyPath)); }