Interface IQueryPrefilter<TEntity, TFilter>
- Namespace
- Magicalizer.Domain.Services.Abstractions
- Assembly
- Magicalizer.Domain.Services.Abstractions.dll
Prefilter of entity queries. It applies initial restrictions (e.g. security rules or mandatory conditions) before the filter.
public interface IQueryPrefilter<TEntity, TFilter> where TEntity : class, IEntity, new() where TFilter : class, IFilter
Type Parameters
TEntityEntity type.
TFilterFilter type.
Methods
Apply(IQueryable<TEntity>, TFilter?)
Applies the prefilter to the query.
IQueryable<TEntity> Apply(IQueryable<TEntity> query, TFilter? filter)
Parameters
queryIQueryable<TEntity>Query to prefilter.
filterTFilterFilter, which may affect the prefilter.
Returns
- IQueryable<TEntity>
Prefiltered query.