MongoDB · Types · Finding the rows
ArxUpdateOptions
Definition
- Namespace
ARX.SDK.Services- Package
ARX.SDK
public sealed class ArxUpdateOptionsOptions for Update and UpdateMultiple.
Properties
ArxMatch Match { get; init; }How the rows are found;
Idby default.bool RequireSingleRow { get; init; }When true, every entity must change exactly one row: none is ARX2002 RecordNotFound, more than one is ARX2003 MultipleRecordsMatched, and either way nothing is changed. Off by default: an update by custom columns may change many rows, and the call returns how many.
Usage
A line from a verified sample; the full, runnable code is on its page.
await service.UpdateAsync(change, new ArxUpdateOptions { Match = ArxMatch.Key("account_number") });Choose how the documents are found, scenario 1
Used in: