共用方式為


CosmosDatabaseFacadeExtensions.GetCosmosClient(DatabaseFacade) 方法

定義

取得這個 DbContext 的基礎 CosmosClient

public static Microsoft.Azure.Cosmos.CosmosClient GetCosmosClient (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member GetCosmosClient : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> Microsoft.Azure.Cosmos.CosmosClient
<Extension()>
Public Function GetCosmosClient (databaseFacade As DatabaseFacade) As CosmosClient

參數

databaseFacade
DatabaseFacade

DatabaseFacade內容的 。

傳回

CosmosClient

備註

如需詳細資訊和範例,請參閱 使用 EF Core 存取 Azure Cosmos DB

適用於