ModelBuilder 생성자

정의

오버로드

ModelBuilder()

규칙 없이 클래스의 ModelBuilder 새 instance 초기화합니다.

경고: 올바른 모델을 빌드하려면 규칙이 필요합니다.

ModelBuilder(ConventionSet)

규칙 집합을 적용할 클래스의 ModelBuilder 새 instance 초기화합니다.

ModelBuilder(IMutableModel)
사용되지 않음.

이 API는 Entity Framework Core 인프라를 지원하며 공용 API와 동일한 호환성 표준이 적용되지 않는 내부 API입니다. 릴리스에서 예고 없이 변경되거나 제거될 수 있습니다. 코드에서 직접 사용해야 하며, 이렇게 하면 새 Entity Framework Core 릴리스로 업데이트할 때 애플리케이션 오류가 발생할 수 있다는 것을 알고 있어야 합니다.

ModelBuilder(ConventionSet, ModelDependencies)

규칙 집합을 적용할 클래스의 ModelBuilder 새 instance 초기화합니다.

ModelBuilder(ConventionSet, ModelDependencies, ModelConfiguration)

이 API는 Entity Framework Core 인프라를 지원하며 공용 API와 동일한 호환성 표준이 적용되지 않는 내부 API입니다. 릴리스에서 예고 없이 변경되거나 제거될 수 있습니다. 코드에서 직접 사용해야 하며, 이렇게 하면 새 Entity Framework Core 릴리스로 업데이트할 때 애플리케이션 오류가 발생할 수 있다는 것을 알고 있어야 합니다.

ModelBuilder()

규칙 없이 클래스의 ModelBuilder 새 instance 초기화합니다.

경고: 올바른 모델을 빌드하려면 규칙이 필요합니다.

public ModelBuilder ();
Public Sub New ()

설명

자세한 내용과 예제는 엔터티 형식 및 관계 모델링 및 EF Core 모델 빌드 규칙을 참조하세요.

적용 대상

ModelBuilder(ConventionSet)

규칙 집합을 적용할 클래스의 ModelBuilder 새 instance 초기화합니다.

public ModelBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions);
new Microsoft.EntityFrameworkCore.ModelBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet -> Microsoft.EntityFrameworkCore.ModelBuilder
Public Sub New (conventions As ConventionSet)

매개 변수

conventions
ConventionSet

모델에 적용할 규칙입니다.

설명

자세한 내용과 예제는 엔터티 형식 및 관계 모델링 및 EF Core 모델 빌드 규칙을 참조하세요.

적용 대상

ModelBuilder(IMutableModel)

주의

이 API는 이제 사용되지 않습니다.

이 API는 Entity Framework Core 인프라를 지원하며 공용 API와 동일한 호환성 표준이 적용되지 않는 내부 API입니다. 릴리스에서 예고 없이 변경되거나 제거될 수 있습니다. 코드에서 직접 사용해야 하며, 이렇게 하면 새 Entity Framework Core 릴리스로 업데이트할 때 애플리케이션 오류가 발생할 수 있다는 것을 알고 있어야 합니다.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
[System.Obsolete]
public ModelBuilder (Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelBuilder : Microsoft.EntityFrameworkCore.Metadata.IMutableModel -> Microsoft.EntityFrameworkCore.ModelBuilder
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
[<System.Obsolete>]
new Microsoft.EntityFrameworkCore.ModelBuilder : Microsoft.EntityFrameworkCore.Metadata.IMutableModel -> Microsoft.EntityFrameworkCore.ModelBuilder
Public Sub New (model As IMutableModel)

매개 변수

특성

적용 대상

ModelBuilder(ConventionSet, ModelDependencies)

규칙 집합을 적용할 클래스의 ModelBuilder 새 instance 초기화합니다.

public ModelBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
new Microsoft.EntityFrameworkCore.ModelBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.ModelBuilder
Public Sub New (conventions As ConventionSet, modelDependencies As ModelDependencies)

매개 변수

conventions
ConventionSet

모델에 적용할 규칙입니다.

modelDependencies
ModelDependencies

모델의 종속성 개체입니다.

설명

자세한 내용과 예제는 엔터티 형식 및 관계 모델링 및 EF Core 모델 빌드 규칙을 참조하세요.

적용 대상

ModelBuilder(ConventionSet, ModelDependencies, ModelConfiguration)

이 API는 Entity Framework Core 인프라를 지원하며 공용 API와 동일한 호환성 표준이 적용되지 않는 내부 API입니다. 릴리스에서 예고 없이 변경되거나 제거될 수 있습니다. 코드에서 직접 사용해야 하며, 이렇게 하면 새 Entity Framework Core 릴리스로 업데이트할 때 애플리케이션 오류가 발생할 수 있다는 것을 알고 있어야 합니다.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies? modelDependencies, Microsoft.EntityFrameworkCore.Metadata.Internal.ModelConfiguration? modelConfiguration);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies * Microsoft.EntityFrameworkCore.Metadata.Internal.ModelConfiguration -> Microsoft.EntityFrameworkCore.ModelBuilder
Public Sub New (conventions As ConventionSet, modelDependencies As ModelDependencies, modelConfiguration As ModelConfiguration)

매개 변수

conventions
ConventionSet
modelDependencies
ModelDependencies
modelConfiguration
Microsoft.EntityFrameworkCore.Metadata.Internal.ModelConfiguration
특성

적용 대상