다음을 통해 공유


CosmosDbContextOptionsBuilder.ExecutionStrategy 메서드

정의

제공된 를 사용하도록 컨텍스트를 IExecutionStrategy구성합니다.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder ExecutionStrategy (Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> getExecutionStrategy);
abstract member ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Public Overridable Function ExecutionStrategy (getExecutionStrategy As Func(Of ExecutionStrategyDependencies, IExecutionStrategy)) As CosmosDbContextOptionsBuilder

매개 변수

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

실행 전략의 새 instance 반환하는 함수입니다.

반환

설명

자세한 내용과 예제는 DbContextOptions 사용EF Core를 사용하여 Azure Cosmos DB 액세스를 참조하세요.

적용 대상