다음을 통해 공유


CoreOptionsExtension.WithApplicationServiceProvider(IServiceProvider) 메서드

정의

모든 옵션이 이 instance 동일하지만 지정된 옵션이 변경된 새 instance 만듭니다. 이 메서드를 직접 호출하는 것은 드문 일입니다. 대신 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

매개 변수

applicationServiceProvider
IServiceProvider

변경할 옵션입니다.

반환

옵션이 변경된 새 instance.

적용 대상