Dil

CosmosDbContextOptionsBuilder.ConnectionMode(ConnectionMode) Yöntem

Tanım

Bağlamı sağlanan bağlantı modunu kullanacak şekilde yapılandırılır.

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

Parametreler

connectionMode
ConnectionMode

bağlantı modunu Azure Cosmos DB.

Döndürülenler

Açıklamalar

Daha fazla bilgi ve örnek için bkz. DbContextOptions kullanma ve EF Core ile Azure Cosmos DB erişme.

Şunlara uygulanır