CoreOptionsExtension.WithApplicationServiceProvider(IServiceProvider) 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 WithApplicationServiceProvider (IServiceProvider applicationServiceProvider);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithApplicationServiceProvider (IServiceProvider? applicationServiceProvider);
abstract member WithApplicationServiceProvider : IServiceProvider -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithApplicationServiceProvider : IServiceProvider -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithApplicationServiceProvider (applicationServiceProvider As IServiceProvider) As CoreOptionsExtension

Parametreler

applicationServiceProvider
IServiceProvider

Değiştirme seçeneği.

Döndürülenler

CoreOptionsExtension

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

Şunlara uygulanır