언어

RelationalModelValidator 생성자

정의

모든 관계형 공급자에 공통적인 규칙을 적용하는 유효성 검사기입니다.

public RelationalModelValidator(Microsoft.EntityFrameworkCore.Infrastructure.ModelValidatorDependencies dependencies, Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies relationalDependencies);
new Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator : Microsoft.EntityFrameworkCore.Infrastructure.ModelValidatorDependencies * Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidatorDependencies -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator
Public Sub New (dependencies As ModelValidatorDependencies, relationalDependencies As RelationalModelValidatorDependencies)

매개 변수

dependencies
ModelValidatorDependencies

이 서비스에 대한 종속성을 포함하는 매개 변수 개체입니다.

relationalDependencies
RelationalModelValidatorDependencies

이 서비스에 대한 관계형 종속성을 포함하는 매개 변수 개체입니다.

설명

서비스 수명은 .입니다 Singleton. 즉, 여러 DbContext 인스턴스에서 단일 인스턴스가 사용됩니다. 구현은 스레드로부터 안전해야 합니다. 이 서비스는 로 등록된 Scoped서비스에 의존할 수 없습니다.

자세한 내용 및 예제는 데이터베이스 공급자 및 확장 구현을 참조하세요.

적용 대상