CosmosDatabaseFacadeExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|
| 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 |
| 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
|