CoreOptionsExtension.WithReplacedService 메서드

정의

오버로드

WithReplacedService(Type, Type)

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

WithReplacedService(Type, Type, Type)

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

WithReplacedService(Type, Type)

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

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithReplacedService (Type serviceType, Type implementationType);
abstract member WithReplacedService : Type * Type -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithReplacedService : Type * Type -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithReplacedService (serviceType As Type, implementationType As Type) As CoreOptionsExtension

매개 변수

serviceType
Type

서비스 계약입니다.

implementationType
Type

서비스에 사용할 구현 형식입니다.

반환

옵션이 변경된 새 instance.

적용 대상

WithReplacedService(Type, Type, Type)

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

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithReplacedService (Type serviceType, Type newImplementationType, Type currentImplementationType = default);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithReplacedService (Type serviceType, Type newImplementationType, Type? currentImplementationType = default);
abstract member WithReplacedService : Type * Type * Type -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithReplacedService : Type * Type * Type -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithReplacedService (serviceType As Type, newImplementationType As Type, Optional currentImplementationType As Type = Nothing) As CoreOptionsExtension

매개 변수

serviceType
Type

서비스 계약입니다.

newImplementationType
Type

서비스에 사용할 구현 형식입니다.

currentImplementationType
Type

바꿀 특정 기존 구현 형식입니다.

반환

옵션이 변경된 새 instance.

적용 대상