MySQL · Types · Finding the rows

ArxUpdateOptions

Definition

Namespace
ARX.SDK.Services
Package
ARX.SDK
C#
public sealed class ArxUpdateOptions

Options for Update and UpdateMultiple.

Properties

  • ArxMatch Match { get; init; }

    How the rows are found; Id by 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

C#

A line from a verified sample; the full, runnable code is on its page.

await service.UpdateAsync(newPrice, new ArxUpdateOptions { Match = ArxMatch.Key("region", "sku") });

Update one record, scenario 4

Used in: