Beispiel #1
0
 public static void CreateTablesIfNotExists()
 {
     foreach (var tableName in TableAssist.GetTables())
     {
         GetTableClient().GetTableReference(tableName).CreateIfNotExists();
     }
 }
Beispiel #2
0
 public async static Task CreateTablesIfNotExistsAsync()
 {
     var tableCreationTasks = TableAssist.GetTables()
                              .ToList()
                              .Select(table => GetTableClient().GetTableReference(TableAssist.AuditActivities())
                                      .CreateIfNotExistsAsync());
     await Task.WhenAll(tableCreationTasks);
 }