CosmosDatabaseFacadeExtensions.UseSessionToken(DatabaseFacade, String) 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.
Sets the composite session token for the default container for this DbContext.
public static void UseSessionToken(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, string sessionToken);
static member UseSessionToken : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * string -> unit
<Extension()>
Public Sub UseSessionToken (databaseFacade As DatabaseFacade, sessionToken As String)
Parameters
- databaseFacade
- DatabaseFacade
The DatabaseFacade for the context.
- sessionToken
- String
The session token to set.
Remarks
See https://aka.ms/efcore-docs-cosmos-session for more information.