PostgreSQL · Types · Other public types

ArxCreateMultipleOptions

Definition

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

Options for CreateMultipleAsync(entities, options).

Properties

  • bool ReturnIds { get; init; }

    True, the default: the new ids are read back and returned, as CreateMultipleAsync(entities) does. False: no id is read back, so the provider can take its bulk path (PostgreSQL's binary COPY, SQL Server's SqlBulkCopy), and the call returns None for every entity. Still all or nothing.

Usage

C#

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

var ids = await service.CreateMultipleAsync(accounts, new ArxCreateMultipleOptions { ReturnIds = false });

Create many records without reading their ids, scenario 1

Used in: