Class CloudStorageDatabaseCreator
- Namespace
- CloudStorageORM.Infrastructure
- Assembly
- CloudStorageORM.dll
Lightweight database-creator implementation for the object-storage provider.
public class CloudStorageDatabaseCreator : IDatabaseCreator
- Inheritance
-
CloudStorageDatabaseCreator
- Implements
- Inherited Members
Methods
CanConnect()
Determines whether the provider can connect to its backing store.
public bool CanConnect()
Returns
CanConnectAsync(CancellationToken)
Determines whether the provider can connect to its backing store.
public Task<bool> CanConnectAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
Create()
Creates provider backing resources when applicable.
public void Create()
CreateAsync(CancellationToken)
Creates provider backing resources when applicable.
public Task CreateAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
Delete()
Deletes provider backing resources when applicable.
public void Delete()
DeleteAsync(CancellationToken)
Deletes provider backing resources when applicable.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
EnsureCreated()
Ensures backing resources exist.
public bool EnsureCreated()
Returns
EnsureCreatedAsync(CancellationToken)
Ensures backing resources exist.
public Task<bool> EnsureCreatedAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
EnsureDeleted()
Ensures backing resources are deleted.
public bool EnsureDeleted()
Returns
EnsureDeletedAsync(CancellationToken)
Ensures backing resources are deleted.
public Task<bool> EnsureDeletedAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
Exists()
Checks whether backing resources currently exist.
public bool Exists()
Returns
ExistsAsync(CancellationToken)
Checks whether backing resources currently exist.
public Task<bool> ExistsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
HasTables()
Checks whether backing resources contain logical tables/collections.
public bool HasTables()
Returns
HasTablesAsync(CancellationToken)
Checks whether backing resources contain logical tables/collections.
public Task<bool> HasTablesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.