TableOperationsTAddNewOrUpdateRecordAsync Method
Adds the specified modeled table record to the database if the
record has not defined any of its primary key values; otherwise, the database will
be updated with the specified modeled table record.
Namespace: Gemstone.Data.ModelAssembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.137 -- Release Build+bf396311d630d9a0959afedb17412b40a2acb327
public Task<int> AddNewOrUpdateRecordAsync(
T record,
CancellationToken cancellationToken
)
Public Function AddNewOrUpdateRecordAsync (
record As T,
cancellationToken As CancellationToken
) As Task(Of Integer)
public:
Task<int>^ AddNewOrUpdateRecordAsync(
T record,
CancellationToken cancellationToken
)
function AddNewOrUpdateRecordAsync(record, cancellationToken);
- record T
- Record to add or update.
- cancellationToken CancellationToken
- Propagates notification that operations should be canceled.
TaskInt32Number of rows affected.