CoreOptionsExtension.WithInterceptors(IEnumerable<IInterceptor>) Yöntem

Tanım

Bu örnekle aynı tüm seçeneklere sahip yeni bir örnek oluşturur, ancak belirtilen seçenek değiştirilmiştir. Bu yöntemi doğrudan çağırma olağan dışıdır. Bunun yerine DbContextOptionsBuilder kullanın.

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

Parametreler

interceptors
IEnumerable<IInterceptor>

Değiştirme seçeneği.

Döndürülenler

CoreOptionsExtension

seçeneği değiştirilmiş yeni bir örnek.

Şunlara uygulanır