static PersonController() { var storageAccount = CloudStorageAccount.Parse("UseDevelopmentStorage=true"); var tableClient = storageAccount.CreateCloudTableClient(); var table = tableClient.GetTableReference("people"); table.CreateIfNotExists(); Person p1 = new Person("1", "Margaret"); Person p2 = new Person("2", "David"); table.Execute(TableOperation.InsertOrReplace(p1)); table.Execute(TableOperation.InsertOrReplace(p2)); }
public PersonModel(Person person) { this.Id = person.RowKey; this.FullName = person.FullName; }