Delegate RelatedItemQueryFilter
The delegate to provide a custom query filter for a GetFilter
The query filter is returned when requested as it may depend on several context values
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: ClientCore.dll
Syntax
public delegate Task<QueryableFilter> RelatedItemQueryFilter(IBaseEntity currentItem, IBaseEntity parentItem, IEntityRetriever context);
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseEntity | currentItem | The current item that this query is being executed within a context of |
| IBaseEntity | parentItem | The parent item this query will be executed within the context of |
| IEntityRetriever | context | The actual IEntityRetriever context that will be used to execute the query (will contain modified items that may be relevant for the query filter) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<QueryableFilter> | A task holding a new filter (if any) that should be applied to the execution of the query |