Amazon DynamoDB · Types · Finding the rows
ArxDeleteOptions
Definition
- Namespace
ARX.SDK.Services- Package
ARX.SDK
public sealed class ArxDeleteOptionsOptions for Delete and DeleteMultiple.
Properties
ArxMatch Match { get; init; }How the rows are found;
Idby default.bool RequireSingleRow { get; init; }When true, every entity must delete exactly one row: none is ARX2002 RecordNotFound, more than one is ARX2003 MultipleRecordsMatched, and either way nothing is deleted. Off by default: a delete that finds nothing is a normal outcome, and a delete by custom columns may remove many rows.
Usage
A line from a verified sample; the full, runnable code is on its page.
int deleted = await service.DeleteMultipleAsync(matches, new ArxDeleteOptions { Match = ArxMatch.Columns("customer_id", "order_number") });How a delete finds its items, scenario 2
Used in: