Delete by Criteria
Syntax
Arguments
filter
Expression<Func<T, bool>>
Criteria by which the records of the repository should be filtered.
This parameter must not be empty.
null
Description
Deletes all records from a repository that fulfill the criteria specified in the parameter filter.
Example
Example 1: Filtering records by only one criterion
The following program illustrates the function call with only one criterion:
Function will delete all the records from the repository that have "ADAM-567-BTO" as Production ID.
Example 2: Filtering records by multiple criteria:
The following program illustrates the function call with multiple criteria:
Function will load all the records from the repository that have "ADAM-567-BTO" as Production ID, have a Quantity of more than 10 and are Urgent.
Last updated