Redigera

Dela via


IDocumentDatabase<TContext> Interface

Definition

An interface for injecting IDocumentDatabase to a specific context.

generic <typename TContext>
 where TContext : classpublic interface class IDocumentDatabase : System::Cloud::DocumentDb::IDocumentDatabase
public interface IDocumentDatabase<TContext> : System.Cloud.DocumentDb.IDocumentDatabase where TContext : class
type IDocumentDatabase<'Context (requires 'Context : null)> = interface
    interface IDocumentDatabase
Public Interface IDocumentDatabase(Of TContext)
Implements IDocumentDatabase

Type Parameters

TContext

The context type, indicating injection preferences.

Implements

Methods

ConnectAsync(Boolean, CancellationToken)

Initializes connections and optionally creates the database if it doesn't exist.

(Inherited from IDocumentDatabase)
CreateTableAsync(TableOptions, RequestOptions, CancellationToken)

Creates a table using provided parameters.

(Inherited from IDocumentDatabase)
DeleteDatabaseAsync(CancellationToken)

Deletes the database this instance is responsible for.

(Inherited from IDocumentDatabase)
DeleteTableAsync(TableOptions, RequestOptions, CancellationToken)

Deletes table using provided parameters.

(Inherited from IDocumentDatabase)
GetDocumentReader<TDocument>(TableOptions)

Gets a document reader for the specified table and document type.

(Inherited from IDocumentDatabase)
GetDocumentWriter<TDocument>(TableOptions)

Gets a document writer for the specified table and document type.

(Inherited from IDocumentDatabase)
ReadTableSettingsAsync(TableOptions, RequestOptions, CancellationToken)

Reads the provided table settings.

(Inherited from IDocumentDatabase)
UpdateTableSettingsAsync(TableOptions, RequestOptions, CancellationToken)

Updates the existing table settings.

(Inherited from IDocumentDatabase)

Applies to