Table of Contents

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

bool

true when a connection can be established.

CanConnectAsync(CancellationToken)

Determines whether the provider can connect to its backing store.

public Task<bool> CanConnectAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true when a connection can be established.

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

cancellationToken CancellationToken

Cancellation token.

Returns

Task

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

cancellationToken CancellationToken

Cancellation token.

Returns

Task

EnsureCreated()

Ensures backing resources exist.

public bool EnsureCreated()

Returns

bool

true when resources were created during this call.

EnsureCreatedAsync(CancellationToken)

Ensures backing resources exist.

public Task<bool> EnsureCreatedAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true when resources were created during this call.

EnsureDeleted()

Ensures backing resources are deleted.

public bool EnsureDeleted()

Returns

bool

true when resources were deleted during this call.

EnsureDeletedAsync(CancellationToken)

Ensures backing resources are deleted.

public Task<bool> EnsureDeletedAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true when resources were deleted during this call.

Exists()

Checks whether backing resources currently exist.

public bool Exists()

Returns

bool

true when resources exist.

ExistsAsync(CancellationToken)

Checks whether backing resources currently exist.

public Task<bool> ExistsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true when resources exist.

HasTables()

Checks whether backing resources contain logical tables/collections.

public bool HasTables()

Returns

bool

true when logical tables are available.

HasTablesAsync(CancellationToken)

Checks whether backing resources contain logical tables/collections.

public Task<bool> HasTablesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true when logical tables are available.