TableBatchOperation batchOperation = new TableBatchOperation(); var entity = new MyEntity("partitionKey", "rowKey"); // MyEntity is a custom entity class entity.Prop1 = "value1"; entity.Prop2 = "value2"; batchOperation.InsertOrReplace(entity); await table.ExecuteBatchAsync(batchOperation);
TableBatchOperation batchOperation = new TableBatchOperation(); var entity = new MyEntity("partitionKey", "rowKey"); // MyEntity is a custom entity class entity.Prop1 = "newValue1"; entity.Prop2 = "newValue2"; batchOperation.InsertOrReplace(entity); await table.ExecuteBatchAsync(batchOperation);Package Library: The TableBatchOperation class is a part of the Microsoft.Azure.Cosmos.Table package library which is used to manage Azure Table storage.