Skip to content

Instantly share code, notes, and snippets.

@ThomasPe
Created March 27, 2022 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasPe/110b0a2299eab34f464ae46757c8013d to your computer and use it in GitHub Desktop.
Save ThomasPe/110b0a2299eab34f464ae46757c8013d to your computer and use it in GitHub Desktop.
CreateTableIfNotExistsSafeAsync
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