Compartir a través de


CosmosDbContextOptionsBuilder.ExecutionStrategy Método

Definición

Configura el contexto para usar el proporcionado 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

Parámetros

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Función que devuelve una nueva instancia de una estrategia de ejecución.

Devoluciones

Comentarios

Consulte Uso de DbContextOptions y Acceso a Azure Cosmos DB con EF Core para más información y ejemplos.

Se aplica a