Interface IFilterable<TSelf>
- Namespace
- DynaSharp
- Assembly
- DynaSharp.dll
A read that takes a filter. It is the way to write a helper that works on queries and scans alike, without knowing the command:
public static TCommand NotDeleted<TCommand>(this TCommand command)
where TCommand : IFilterable<TCommand>, allows ref struct =>
command.Filter(Attr("deletedAt").NotExists());
public interface IFilterable<TSelf> where TSelf : IFilterable<TSelf>, allows ref struct
Type Parameters
TSelfThe command.
Methods
Filter<TCondition>(TCondition)
Adds a filter. DynamoDB applies it after reading, so it shortens the result, not the read: capacity is charged for every item scanned, and a page can come back empty. A second filter means both must hold.
TSelf Filter<TCondition>(TCondition condition) where TCondition : ICondition
Parameters
conditionTConditionThe condition.
Returns
- TSelf
The command, which replaces this one.
Type Parameters
TConditionThe type of the condition.