Skip to content

Commit 8eab0a9

Browse files
authored
Merge pull request #4 from GuillaumeVadeBe/feature/allow-updates-on-tablestorage
TableStorage Upsert on Batch Action
2 parents 4bf9049 + 27b7923 commit 8eab0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/AzureTableAPIDataSinkExtension.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static async IAsyncEnumerable<List<TableEntity>> GetBatches(IAsyncEnumer
6363

6464
private static async Task InnerWriteAsync(List<TableEntity> tableEntities, TableClient tableClient, ILogger logger, CancellationToken cancellationToken)
6565
{
66-
var transactionsActions = tableEntities.Select(e => new TableTransactionAction(TableTransactionActionType.Add, e));
66+
var transactionsActions = tableEntities.Select(e => new TableTransactionAction(TableTransactionActionType.UpsertReplace, e));
6767

6868
try
6969
{

0 commit comments

Comments
 (0)