Aracılığıyla paylaş


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

Tanım

Tüm seçenekleri bu örnekle aynı olan ancak verilen seçeneğin değiştirildiği yeni bir örnek oluşturur. Bu yöntemi doğrudan çağırmak olağan dışıdır. Bunun yerine kullanın DbContextOptionsBuilder.

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

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

Şunlara uygulanır