Idioma

CosmosDatabaseFacadeExtensions Class

Definition

Extension methods for the DatabaseFacade returned from Database that can be used only with the Cosmos provider.

[System.Runtime.CompilerServices.Nullable(0)]
public static class CosmosDatabaseFacadeExtensions
public static class CosmosDatabaseFacadeExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosDatabaseFacadeExtensions = class
type CosmosDatabaseFacadeExtensions = class
Public Module CosmosDatabaseFacadeExtensions
Inheritance
CosmosDatabaseFacadeExtensions
Attributes

Methods

Name Description
AppendSessionToken(DatabaseFacade, String)

Appends the composite session token for the default container for this DbContext.

AppendSessionTokens(DatabaseFacade, IReadOnlyDictionary<String,String>)

Appends the composite sessions token per container for this DbContext with the tokens specified in sessionTokens.

GetCosmosClient(DatabaseFacade)

Gets the underlying CosmosClient for this DbContext.

GetCosmosDatabaseId(DatabaseFacade)

Gets the configured database name for this DbContext.

GetSessionToken(DatabaseFacade)

Gets the composite session token for the default container for this DbContext.

GetSessionTokens(DatabaseFacade)

Gets a dictionary that contains the composite session token per container for this DbContext.

IsCosmos(DatabaseFacade)

Returns true if the database provider currently in use is the Cosmos provider.

UseSessionToken(DatabaseFacade, String)

Sets the composite session token for the default container for this DbContext.

UseSessionTokens(DatabaseFacade, IReadOnlyDictionary<String,String>)

Sets the composite sessions token per container for this DbContext with the tokens specified in sessionTokens.

Applies to