SqlServerDbContextOptionsBuilder.EnableRetryOnFailure Método

Definição

Sobrecargas

EnableRetryOnFailure()

Configura o contexto para usar a repetição padrão IExecutionStrategy .

EnableRetryOnFailure(Int32)

Configura o contexto para usar a repetição padrão IExecutionStrategy .

EnableRetryOnFailure(Int32, TimeSpan, ICollection<Int32>)

Configura o contexto para usar a repetição padrão IExecutionStrategy .

EnableRetryOnFailure()

Configura o contexto para usar a repetição padrão IExecutionStrategy .

public virtual Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder EnableRetryOnFailure ();
abstract member EnableRetryOnFailure : unit -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
override this.EnableRetryOnFailure : unit -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
Public Overridable Function EnableRetryOnFailure () As SqlServerDbContextOptionsBuilder

Retornos

SqlServerDbContextOptionsBuilder

Aplica-se a

EnableRetryOnFailure(Int32)

Configura o contexto para usar a repetição padrão IExecutionStrategy .

public virtual Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder EnableRetryOnFailure (int maxRetryCount);
abstract member EnableRetryOnFailure : int -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
override this.EnableRetryOnFailure : int -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
Public Overridable Function EnableRetryOnFailure (maxRetryCount As Integer) As SqlServerDbContextOptionsBuilder

Parâmetros

maxRetryCount
Int32

Retornos

SqlServerDbContextOptionsBuilder

Aplica-se a

EnableRetryOnFailure(Int32, TimeSpan, ICollection<Int32>)

Configura o contexto para usar a repetição padrão IExecutionStrategy .

public virtual Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder EnableRetryOnFailure (int maxRetryCount, TimeSpan maxRetryDelay, System.Collections.Generic.ICollection<int> errorNumbersToAdd);
abstract member EnableRetryOnFailure : int * TimeSpan * System.Collections.Generic.ICollection<int> -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
override this.EnableRetryOnFailure : int * TimeSpan * System.Collections.Generic.ICollection<int> -> Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder
Public Overridable Function EnableRetryOnFailure (maxRetryCount As Integer, maxRetryDelay As TimeSpan, errorNumbersToAdd As ICollection(Of Integer)) As SqlServerDbContextOptionsBuilder

Parâmetros

maxRetryCount
Int32

O número máximo de tentativas de repetição.

maxRetryDelay
TimeSpan

O atraso máximo entre as repetições.

errorNumbersToAdd
ICollection<Int32>

Números de erro SQL adicionais que devem ser considerados transitórios.

Retornos

SqlServerDbContextOptionsBuilder

Aplica-se a