Udostępnij za pośrednictwem


CosmosDatabaseFacadeExtensions.GetCosmosDatabaseId(DatabaseFacade) Method

Definition

Gets the configured database name for this DbContext.

public static string GetCosmosDatabaseId (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetCosmosDatabaseId : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
<Extension()>
Public Function GetCosmosDatabaseId (databaseFacade As DatabaseFacade) As String

Parameters

databaseFacade
DatabaseFacade

The DatabaseFacade for the context.

Returns

The database name.

Remarks

See Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to