Interface IIncludableQueryHandler
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
sourceIQueryable<TEntity>Request source.
navigationPropertyPathExpression<Func<TEntity, TProperty>>Path of the property to include.
Returns
- QueryResult<INeosIncludableQueryable<TEntity, TProperty>>
New request.
Type Parameters
TEntityType of the requested entity.
TPropertyType 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
sourceINeosIncludableQueryable<TEntity, IEnumerable<TPreviousProperty>>Request source.
navigationPropertyPathExpression<Func<TPreviousProperty, TProperty>>Path of the property to include.
Returns
- QueryResult<INeosIncludableQueryable<TEntity, TProperty>>
New request.
Type Parameters
TEntityType of the requested entity.
TPreviousPropertyType of previous property included.
TPropertyType 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
sourceINeosIncludableQueryable<TEntity, TPreviousProperty>Request source.
navigationPropertyPathExpression<Func<TPreviousProperty, TProperty>>Path of the property to include.
Returns
- QueryResult<INeosIncludableQueryable<TEntity, TProperty>>
New request.
Type Parameters
TEntityType of the requested entity.
TPreviousPropertyType of previous property included.
TPropertyType of the property to include.