다음을 통해 공유


CoreOptionsExtension.WithLoggerFactory(ILoggerFactory) 메서드

정의

모든 옵션이 이 instance 동일하지만 지정된 옵션이 변경된 새 instance 만듭니다. 이 메서드를 직접 호출하는 것은 드문 일입니다. 대신 DbContextOptionsBuilder를 사용하세요.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
abstract member WithLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithLoggerFactory (loggerFactory As ILoggerFactory) As CoreOptionsExtension

매개 변수

loggerFactory
ILoggerFactory

변경할 옵션입니다.

반환

옵션이 변경된 새 instance.

적용 대상