Compartilhar via


CosmosDbContextOptionsBuilder.ConnectionMode(ConnectionMode) Método

Definição

Configura o contexto para usar o modo de conexão fornecido.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder ConnectionMode (Microsoft.Azure.Cosmos.ConnectionMode connectionMode);
abstract member ConnectionMode : Microsoft.Azure.Cosmos.ConnectionMode -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.ConnectionMode : Microsoft.Azure.Cosmos.ConnectionMode -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Public Overridable Function ConnectionMode (connectionMode As ConnectionMode) As CosmosDbContextOptionsBuilder

Parâmetros

connectionMode
ConnectionMode

Modo de conexão do Azure Cosmos DB.

Retornos

Comentários

Consulte Usando DbContextOptions e Acessando o Azure Cosmos DB com o EF Core para obter mais informações e exemplos.

Aplica-se a