private void InitBookstore() { TableBatchOperation batchOperation = new TableBatchOperation(); Bookstore a1 = new Bookstore("1", 5, 800); Bookstore a2 = new Bookstore("2", 5, 900); Bookstore a3 = new Bookstore("3", 5, 1000); Bookstore a4 = new Bookstore("4", 5, 1100); Bookstore a5 = new Bookstore("5", 5, 1500); batchOperation.InsertOrReplace(a1); batchOperation.InsertOrReplace(a2); batchOperation.InsertOrReplace(a3); batchOperation.InsertOrReplace(a4); batchOperation.InsertOrReplace(a5); _tableBookstore.ExecuteBatch(batchOperation); }
public void DeleteBookstore(Bookstore Bookstore) { TableOperation delete = TableOperation.Delete(Bookstore); _tableBookstore.Execute(delete); }
//bookstore public void AddOrReplaceBookstore(Bookstore Bookstore) { TableOperation add = TableOperation.InsertOrReplace(Bookstore); _tableBookstore.Execute(add); }