IModelSource.GetModel 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
GetModel(DbContext, IConventionSetBuilder) |
사용되지 않음.
사용되지 않음.
사용할 모델을 가져옵니다. |
GetModel(DbContext, IConventionSetBuilder, ModelDependencies) |
사용되지 않음.
사용할 모델을 가져옵니다. |
GetModel(DbContext, IConventionSetBuilder, IModelValidator) |
사용할 모델을 가져옵니다. |
GetModel(DbContext, IConventionSetBuilder, IModelValidator) |
사용할 모델을 가져옵니다. |
GetModel(DbContext, ModelCreationDependencies, Boolean) |
사용할 모델을 가져옵니다. |
GetModel(DbContext, IConventionSetBuilder)
주의
Use the overload with ModelDependencies
주의
Use the overload with ModelCreationDependencies
사용할 모델을 가져옵니다.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelCreationDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelCreationDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder) As IModel
매개 변수
- context
- DbContext
모델이 생성되는 컨텍스트입니다.
- conventionSetBuilder
- IConventionSetBuilder
모델을 만들 때 사용할 규칙 집합입니다.
반환
사용할 모델입니다.
- 특성
적용 대상
GetModel(DbContext, IConventionSetBuilder, ModelDependencies)
주의
Use the overload with ModelCreationDependencies
사용할 모델을 가져옵니다.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
[System.Obsolete("Use the overload with ModelCreationDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelCreationDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, modelDependencies As ModelDependencies) As IModel
매개 변수
- context
- DbContext
모델이 생성되는 컨텍스트입니다.
- conventionSetBuilder
- IConventionSetBuilder
모델을 만들 때 사용할 규칙 집합입니다.
- modelDependencies
- ModelDependencies
모델의 종속성 개체입니다.
반환
사용할 모델입니다.
- 특성
적용 대상
GetModel(DbContext, IConventionSetBuilder, IModelValidator)
사용할 모델을 가져옵니다.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator validator);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
매개 변수
- context
- DbContext
모델이 생성되는 컨텍스트입니다.
- conventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder
모델을 만들 때 사용할 규칙 집합입니다.
- validator
- IModelValidator
모델을 확인하는 유효성 검사기가 컨텍스트와 함께 성공적으로 사용될 수 있습니다.
반환
사용할 모델입니다.
적용 대상
GetModel(DbContext, IConventionSetBuilder, IModelValidator)
사용할 모델을 가져옵니다.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Internal.IModelValidator validator);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Internal.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
매개 변수
- context
- DbContext
모델이 생성되는 컨텍스트입니다.
- conventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder
모델을 만들 때 사용할 규칙 집합입니다.
- validator
- Microsoft.EntityFrameworkCore.Internal.IModelValidator
모델을 확인하는 유효성 검사기가 컨텍스트와 함께 성공적으로 사용될 수 있습니다.
반환
사용할 모델입니다.
적용 대상
GetModel(DbContext, ModelCreationDependencies, Boolean)
사용할 모델을 가져옵니다.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.ModelCreationDependencies modelCreationDependencies, bool designTime);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.ModelCreationDependencies * bool -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, modelCreationDependencies As ModelCreationDependencies, designTime As Boolean) As IModel
매개 변수
- context
- DbContext
모델이 생성되는 컨텍스트입니다.
- modelCreationDependencies
- ModelCreationDependencies
모델을 만드는 동안 사용되는 종속성 개체입니다.
- designTime
- Boolean
모델에 디자인 타임 구성이 포함되어야 하는지 여부입니다.
반환
사용할 모델입니다.
적용 대상
Entity Framework