Filtering
Table Of Contents
Query Instance
Start by creating an instance of the Query class passing the Property Enum as generic type parameter like so:
Pass that instance to one of the repository methods available on that Entity's repository like this:
Examples
For example if we wanted to say "All customers where the balance is greater than zero":
Fluent Syntax
Builder Syntax
And Or Logical Operators
You can further craft your query by appending more conditions using the Where( means And ) or the Or operators.
Let's build on our previous example. "All customers where the balance is greater than 1000 or less than 500".
Fluent Syntax
Builder Syntax
The Or operator works in the same way that the And(Where) operator. Just replace the word Where for Or.
Supported Conditions
For a comprehensive list of supported conditions please read the Conditions documentation.
Complex Expressions
In some circumstances you might want to group conditions into more elaborate expressions in which these conditions might be evaluated together.
For more information on how to craft these types of queries please go to the Complex Expressions section of the documentation.