Olszewskidev / lens-up

LensUp is a web application that serves as a virtual gallery, allowing party guests to upload their photos from the event and also write down their wishes.
54 stars 3 forks source link

Update TableNames.cs #78

Closed JanSafronov closed 4 months ago

JanSafronov commented 4 months ago

Change to enumeration type making it less abstract and simpler.

JanSafronov commented 4 months ago

@Olszewskidev Regarding changed file backend-services/back-office-service/src/LensUp.BackOfficeService.Infrastructure/Initializers/AzureTablesInitializer.cs in feature #80, TableNames can again be enumerated in a foreach statement

foreach(string tableName in Enum.GetNames(typeof(AnimalEnum)))
{
  var tableClient = this.tableServiceClient.GetTableClient(tableName);
  taskList.Add(tableClient.CreateIfNotExistsAsync(cancellationToken));
}