Table of Contents

Interface IIncludableQueryHandler

Namespace
GroupeIsa.Neos.Shared.Linq
Assembly
GroupeIsa.Neos.Shared.dll

Manager for query execution with data included.

public interface IIncludableQueryHandler

Methods

Include<TEntity, TProperty>(IQueryable<TEntity>, Expression<Func<TEntity, TProperty>>)

Include a linked property in the query.

QueryResult<INeosIncludableQueryable<TEntity, TProperty>> Include<TEntity, TProperty>(IQueryable<TEntity> source, Expression<Func<TEntity, TProperty>> navigationPropertyPath) where TEntity : class

Parameters

source IQueryable<TEntity>

Request source.

navigationPropertyPath Expression<Func<TEntity, TProperty>>

Path of the property to include.

Returns

QueryResult<INeosIncludableQueryable<TEntity, TProperty>>

New request.

Type Parameters

TEntity

Type of the requested entity.

TProperty

Type of the property to include.

ThenInclude<TEntity, TPreviousProperty, TProperty>(INeosIncludableQueryable<TEntity, IEnumerable<TPreviousProperty>>, Expression<Func<TPreviousProperty, TProperty>>)

Include a linked property in the query.

QueryResult<INeosIncludableQueryable<TEntity, TProperty>> ThenInclude<TEntity, TPreviousProperty, TProperty>(INeosIncludableQueryable<TEntity, IEnumerable<TPreviousProperty>> source, Expression<Func<TPreviousProperty, TProperty>> navigationPropertyPath) where TEntity : class

Parameters

source INeosIncludableQueryable<TEntity, IEnumerable<TPreviousProperty>>

Request source.

navigationPropertyPath Expression<Func<TPreviousProperty, TProperty>>

Path of the property to include.

Returns

QueryResult<INeosIncludableQueryable<TEntity, TProperty>>

New request.

Type Parameters

TEntity

Type of the requested entity.

TPreviousProperty

Type of previous property included.

TProperty

Type of the property to include.

ThenInclude<TEntity, TPreviousProperty, TProperty>(INeosIncludableQueryable<TEntity, TPreviousProperty>, Expression<Func<TPreviousProperty, TProperty>>)

Include a linked property in the query.

QueryResult<INeosIncludableQueryable<TEntity, TProperty>> ThenInclude<TEntity, TPreviousProperty, TProperty>(INeosIncludableQueryable<TEntity, TPreviousProperty> source, Expression<Func<TPreviousProperty, TProperty>> navigationPropertyPath) where TEntity : class

Parameters

source INeosIncludableQueryable<TEntity, TPreviousProperty>

Request source.

navigationPropertyPath Expression<Func<TPreviousProperty, TProperty>>

Path of the property to include.

Returns

QueryResult<INeosIncludableQueryable<TEntity, TProperty>>

New request.

Type Parameters

TEntity

Type of the requested entity.

TPreviousProperty

Type of previous property included.

TProperty

Type of the property to include.