Created
March 27, 2022 14:39
-
-
Save ThomasPe/110b0a2299eab34f464ae46757c8013d to your computer and use it in GitHub Desktop.
CreateTableIfNotExistsSafeAsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tables = await tableServiceClient.QueryAsync(x => x.Name == table).ToListAsync().ConfigureAwait(false); | |
if (!tables.Any()) | |
{ | |
await tableServiceClient.CreateTableAsync(table).ConfigureAwait(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment