CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Repositories.Queries.QueryStrategy Class Reference

A specification for a query to execute. More...

+ Inheritance diagram for Cqrs.Repositories.Queries.QueryStrategy:

Public Member Functions

virtual IQueryPredicate IsNotLogicallyDeleted ()
 Filter to all items not logically deleted. More...
 
virtual IQueryPredicate WithPermissionScopeAny< TAuthenticationToken > (TAuthenticationToken authenticationToken)
 Filter to all items with any permission scope. More...
 
virtual IQueryPredicate WithPermissionScopeUser< TAuthenticationToken > (TAuthenticationToken authenticationToken)
 Filter to any items the authenticated user can view. More...
 
virtual IQueryPredicate WithPermissionScopeCompany< TAuthenticationToken > (TAuthenticationToken authenticationToken)
 Filter to any items the company the authenticated user can view. More...
 
virtual IQueryPredicate WithPermissionScopeCompanyAndUser< TAuthenticationToken > (TAuthenticationToken authenticationToken)
 Filter to any items the company the authenticated user can view and then filter the results to any items the authenticated user can see. More...
 

Protected Member Functions

virtual IQueryPredicate BuildQueryPredicate< TData > (Func< TData > func)
 Builds a IQueryPredicate from the provided func . More...
 
virtual IQueryPredicate BuildQueryPredicate< TParameter1, TData > (Func< TParameter1, TData > func, TParameter1 parameter1)
 Builds a IQueryPredicate from the provided func storing the provided parameter1 . More...
 
virtual IQueryPredicate BuildQueryPredicate< TParameter1, TParameter2, TData > (Func< TParameter1, TParameter2, TData > func, TParameter1 parameter1, TParameter2 parameter2)
 Builds a IQueryPredicate from the provided func storing the provided parameter1 and parameter2 . More...
 
virtual IQueryPredicate BuildQueryPredicate< TParameter1, TParameter2, TParameter3, TData > (Func< TParameter1, TParameter2, TParameter3, TData > func, TParameter1 parameter1, TParameter2 parameter2, TParameter3 parameter3)
 Builds a IQueryPredicate from the provided func storing the provided parameter1 , parameter2 and parameter3 . More...
 
virtual IQueryPredicate BuildQueryPredicate< TParameter1, TParameter2, TParameter3, TParameter4, TData > (Func< TParameter1, TParameter2, TParameter3, TParameter4, TData > func, TParameter1 parameter1, TParameter2 parameter2, TParameter3 parameter3, TParameter4 parameter4)
 Builds a IQueryPredicate from the provided func storing the provided parameter1 , parameter2 , parameter3 and parameter4 . More...
 
virtual IQueryPredicate BuildQueryPredicate< TParameter1, TParameter2, TParameter3, TParameter4, TParameter5, TData > (Func< TParameter1, TParameter2, TParameter3, TParameter4, TParameter5, TData > func, TParameter1 parameter1, TParameter2 parameter2, TParameter3 parameter3, TParameter4 parameter4, TParameter5 parameter5)
 Builds a IQueryPredicate from the provided func storing the provided parameter1 , parameter2 , parameter3 , parameter4 and parameter5 . More...
 
virtual IQueryPredicate And (IQueryPredicate queryPredicate)
 Builds an IAndQueryPredicate between QueryPredicate and the provided queryPredicate More...
 
virtual IQueryPredicate Or (IQueryPredicate queryPredicate)
 Builds an IOrQueryPredicate between QueryPredicate and the provided queryPredicate More...
 

Properties

IQueryPredicate QueryPredicate [get, protected set]
 The predicate that will be evaluated. More...
 
- Properties inherited from Cqrs.Repositories.Queries.IQueryStrategy
IQueryPredicate QueryPredicate [get]
 The predicate that will be evaluated. More...
 

Detailed Description

A specification for a query to execute.