/// <summary> /// Creates several Table Storage entities. /// </summary> /// <param name="count"></param> public void CreateEntities(int count) { // Create several entities. for (int i = 1; i <= count; i++) { // Create a new entity. Random rnd = new Random(); SampleEntity entity = new SampleEntity(Guid.NewGuid()) { CreatedAt = DateTime.UtcNow.ToString("o"), Number = rnd.Next(0, int.MaxValue) }; // Create the TableOperation that inserts the entity. Console.WriteLine(String.Format("Inserting entity {0}.", i)); TableOperation insertOperation = TableOperation.Insert(entity); // Execute the insert operation. table.Execute(insertOperation); Console.WriteLine(String.Format("Entity '{0}' inserted.", entity.RowKey)); } }