Table of Contents

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

TSelf

The 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

condition TCondition

The condition.

Returns

TSelf

The command, which replaces this one.

Type Parameters

TCondition

The type of the condition.