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

适用于