CoreOptionsExtension.WithSingletonInterceptors Metodo

Definizione

Crea una nuova istanza con tutte le opzioni uguali per questa istanza, ma con l'opzione specificata modificata. È insolito chiamare direttamente questo metodo. Usare invece 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

Parametri

interceptors
IEnumerable<ISingletonInterceptor>

Opzione da modificare.

Restituisce

Nuova istanza con l'opzione modificata.

Si applica a