Sprache

CoreOptionsExtension.WithSingletonInterceptors Methode

Definition

Erstellt eine neue Instanz mit allen Optionen, die mit dieser Instanz identisch sind, aber mit der angegebenen Option geändert wurde. Es ist ungewöhnlich, diese Methode direkt aufzurufen. Verwenden Sie stattdessen 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

Parameter

interceptors
IEnumerable<ISingletonInterceptor>

Die Option zum Ändern.

Gibt zurück

Eine neue Instanz mit geänderter Option.

Gilt für: