コード例 #1
0
        public void Update(CustomerIndia customer)
        {
            TableOperation ope   = TableOperation.Replace(customer);
            CloudTable     table = CreateTable();

            table.Execute(ope);
        }
コード例 #2
0
        public void Delete(CustomerIndia customer)
        {
            TableOperation to  = TableOperation.Delete(customer);
            var            tab = CreateTable();

            tab.Execute(to);
        }
コード例 #3
0
        public void CreateEntity(CustomerIndia customerIndia)
        {
            TableOperation operation  = TableOperation.Insert(customerIndia);
            CloudTable     cloudTable = tableClient.GetTableReference("customers");

            //cloudTable.CreateIfNotExists();
            cloudTable.Execute(operation);
        }
コード例 #4
0
        public void PerformBatchInsert()
        {
            CustomerIndia c1 = new CustomerIndia("1", "*****@*****.**");
            CustomerIndia c2 = new CustomerIndia("2", "*****@*****.**");
            CustomerIndia c3 = new CustomerIndia("3", "*****@*****.**");

            var table = CreateTable();

            TableBatchOperation tbo = new TableBatchOperation();

            tbo.Insert(c1);
            tbo.Insert(c2);
            tbo.Insert(c3);

            table.ExecuteBatch(tbo);
        }