Exemplo n.º 1
0
        private async Task DeleteMoreThan25InBatch()
        {
            TableHandler <Item> requestHandler = new TableHandler <Item>(TableName, new ItemConverterItem());

            List <Item> items = new List <Item>();

            for (int i = 0; i < 30; i++)
            {
                items.Add(new Item()
                {
                    id = i.ToString(), number = i * 10
                });
            }

            await requestHandler.DeleteItemsInBatchAsync(items);

            Console.WriteLine("Deleted More Than 25 Items In Batch");
        }
Exemplo n.º 2
0
        private async Task DeleteItemsInBatchAsync()
        {
            TableHandler <Item> requestHandler = new TableHandler <Item>(TableName, new ItemConverterItem());

            List <Item> items = new List <Item>()
            {
                new Item()
                {
                    id = "1", number = 11
                },
                new Item()
                {
                    id = "2", number = 22
                },
                new Item()
                {
                    id = "3", number = 33
                }
            };

            await requestHandler.DeleteItemsInBatchAsync(items);

            Console.WriteLine("Added Items In Batch");
        }