CosmosDatabaseFacadeExtensions.GetSessionToken(DatabaseFacade) Method
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.
Gets the composite session token for the default container for this DbContext.
public static string? GetSessionToken(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetSessionToken : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
<Extension()>
Public Function GetSessionToken (databaseFacade As DatabaseFacade) As String
Parameters
- databaseFacade
- DatabaseFacade
The DatabaseFacade for the context.
Returns
The session token for the default container in the context, or null if none present.
Remarks
See https://aka.ms/efcore-docs-cosmos-session for more information.