Partilhar via


CoreOptionsExtension.WithSingletonInterceptors Método

Definição

Cria uma nova instância com todas as opções iguais às desta instância, mas com a opção fornecida alterada. É incomum chamar esse método diretamente. Use DbContextOptionsBuilder.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithSingletonInterceptors (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Diagnostics.ISingletonInterceptor> interceptors);
abstract member WithSingletonInterceptors : seq<Microsoft.EntityFrameworkCore.Diagnostics.ISingletonInterceptor> -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithSingletonInterceptors : seq<Microsoft.EntityFrameworkCore.Diagnostics.ISingletonInterceptor> -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithSingletonInterceptors (interceptors As IEnumerable(Of ISingletonInterceptor)) As CoreOptionsExtension

Parâmetros

interceptors
IEnumerable<ISingletonInterceptor>

A opção a ser alterada.

Retornos

Uma nova instância com a opção alterada.

Aplica-se a