Aracılığıyla paylaş


CoreOptionsExtension.WithApplicationServiceProvider(IServiceProvider) 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 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

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

Şunlara uygulanır