PostgreSQL · Types · Other public types
ArxCreateMultipleOptions
Definition
- Namespace
ARX.SDK.Services- Package
ARX.SDK
public sealed class ArxCreateMultipleOptionsOptions 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 binaryCOPY, SQL Server'sSqlBulkCopy), and the call returnsNonefor every entity. Still all or nothing.
Usage
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:
- Create many records without reading their idsCreateMultiple