src/NetStandard/EntityFrameworkCore/Query/src/IDeterminedIncludableQueryableExtensions.cs
/// <summary>
/// Specifies related entities to include in the query results. The navigation 
/// property to be included is specified starting with the type of entity being
/// queried (<typeparamref name="EntityType"/>). If you wish to include additional
/// types based on the navigation properties of the type being included, then chain
/// a call to <see cref="ThenIncludeIf{EntityType, PreviousPropertyType, PropertyType}(IDeterminedIncludableQueryable{EntityType, IEnumerable{PreviousPropertyType}}, Expression{Func{PreviousPropertyType, PropertyType}}, bool)"/>
/// after this call.
/// </summary>
/// <typeparam name="EntityType">The type of entity being queried.</typeparam>
/// <typeparam name="PropertyType">The type of related entity to be included.</typeparam>
/// <param name="determinedQuery">The source query.</param>
/// <param name="includePath">A lambda expression representing the navigation property to be included</param>
/// <param name="determinator">A boolean that determines the related entity being included or not.</param>
/// <returns>A new includable query with related entity to be included if <paramref name="determinator"/> is true.</returns>
/// <exception cref="ArgumentNullException">The parameter <paramref name="determinedQuery"/> is null.</exception>
Specifies related entities to include in the query results. The navigation
property to be included is specified starting with the type of entity being
queried (). If you wish to include additional
types based on the navigation properties of the type being included, then chain
a call to
after this call.
Specifies related entities to include in the query results . The navigation property to be included is specified starting with the type of entity being queried () . If you wish to include additional types based on the navigation properties of the type being included then chain a call to after this call .
public static IDeterminedIncludableQueryable<EntityType, PropertyType> IncludeIf<EntityType, PreviousPropertyType, PropertyType>(
            this IDeterminedIncludableQueryable<EntityType, PreviousPropertyType> determinedQuery,
            Expression<Func<EntityType, PropertyType>> includePath, bool determinator)
            where EntityType : class =>
            determinedQuery.DeterminedQuery.IncludeIf(includePath, determinator);
public static IDeterminedIncludableQueryable < EntityType , PropertyType > IncludeIf < EntityType , PreviousPropertyType , PropertyType > ( this IDeterminedIncludableQueryable < EntityType , PreviousPropertyType > determinedQuery , Expression < Func < EntityType , PropertyType > > includePath , bool determinator ) where EntityType : class => determinedQuery . DeterminedQuery . IncludeIf ( includePath , determinator ) ;
Specifies related entities to include in the query results.
Specifies related entities to include in the query results .
A new includable query with related entity to be included if  is true.
A new includable query with related entity to be included if is true .
The parameter  is null.
The parameter is null .
IDeterminedIncludableQueryable<EntityType, PreviousPropertyType>
this
includePath
Expression<Func<EntityType, PropertyType>>
A lambda expression representing the navigation property to be included
A lambda expression representing the navigation property to be included
determinator
bool
A boolean that determines the related entity being included or not.
A boolean that determines the related entity being included or not .
determinedQuery
The source query.
The source query .
typeparam
The type of entity being queried.
The type of entity being queried .
typeparam
The type of related entity to be included.
The type of related entity to be included .