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