Show / Hide Table of Contents

Class AbpEntityFrameworkQueryableExtensions

Inheritance
System.Object
AbpEntityFrameworkQueryableExtensions
Namespace: Microsoft.EntityFrameworkCore
Assembly: Volo.Abp.EntityFrameworkCore.dll
Syntax
public static class AbpEntityFrameworkQueryableExtensions : object

Methods

IncludeIf<T, TProperty>(IQueryable<T>, Boolean, Expression<Func<T, TProperty>>)

Specifies the related objects to include in the query results.

Declaration
public static IQueryable<T> IncludeIf<T, TProperty>(this IQueryable<T> source, bool condition, Expression<Func<T, TProperty>> path)

    where T : class
Parameters
Type Name Description
IQueryable<T> source

The source on which to call Include.

System.Boolean condition

A boolean value to determine to include path or not.

Expression<Func<T, TProperty>> path

The type of navigation property being included.

Returns
Type Description
IQueryable<T>
Type Parameters
Name Description
T
TProperty
Back to top Powered by Volosoft