Share via


SqlServerVectorStoreRecordCollection<TKey,TRecord>.UpsertBatchAsync Method

Definition

Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertBatchAsync(System.Collections.Generic.IEnumerable{`1},System.Threading.CancellationToken)
public System.Collections.Generic.IAsyncEnumerable<TKey> UpsertBatchAsync(System.Collections.Generic.IEnumerable<TRecord> records, System.Threading.CancellationToken cancellationToken = default);
abstract member UpsertBatchAsync : seq<'Record> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Key>
override this.UpsertBatchAsync : seq<'Record> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<'Key>
Public Function UpsertBatchAsync (records As IEnumerable(Of TRecord), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TKey)

Parameters

records
IEnumerable<TRecord>
cancellationToken
CancellationToken

Returns

Implements

Microsoft.Extensions.VectorData.IVectorStoreRecordCollection`2.UpsertBatchAsync(System.Collections.Generic.IEnumerable{`1},System.Threading.CancellationToken)

Applies to