public void Update(CustomerIndia customer) { TableOperation ope = TableOperation.Replace(customer); CloudTable table = CreateTable(); table.Execute(ope); }
public void Delete(CustomerIndia customer) { TableOperation to = TableOperation.Delete(customer); var tab = CreateTable(); tab.Execute(to); }
public void CreateEntity(CustomerIndia customerIndia) { TableOperation operation = TableOperation.Insert(customerIndia); CloudTable cloudTable = tableClient.GetTableReference("customers"); //cloudTable.CreateIfNotExists(); cloudTable.Execute(operation); }
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); }