다음을 통해 공유


ModelSource.GetModel 메서드

정의

오버로드

GetModel(DbContext, IConventionSetBuilder)
사용되지 않음.
사용되지 않음.

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

GetModel(DbContext, IConventionSetBuilder, ModelDependencies)
사용되지 않음.

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

GetModel(DbContext, ModelCreationDependencies, Boolean)

사용할 모델을 가져옵니다.

GetModel(DbContext, IConventionSetBuilder)

Source:
ModelSource.cs
Source:
ModelSource.cs
Source:
ModelSource.cs
Source:
ModelSource.cs

주의

Use the overload with ModelDependencies

주의

Use the overload with ModelCreationDependencies

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelDependencies")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelCreationDependencies")]
public virtual 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
override this.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
override this.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
override this.GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder) As IModel

매개 변수

context
DbContext

모델이 생성되는 컨텍스트입니다.

conventionSetBuilder
IConventionSetBuilder

모델을 만들 때 사용할 규칙 집합입니다.

반환

사용할 모델입니다.

구현

특성

적용 대상

GetModel(DbContext, IConventionSetBuilder, ModelDependencies)

Source:
ModelSource.cs
Source:
ModelSource.cs

주의

Use the overload with ModelCreationDependencies

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

public virtual 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 virtual 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
override this.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
override this.GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, modelDependencies As ModelDependencies) As IModel

매개 변수

context
DbContext

모델이 생성되는 컨텍스트입니다.

conventionSetBuilder
IConventionSetBuilder

모델을 만들 때 사용할 규칙 집합입니다.

modelDependencies
ModelDependencies

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

반환

사용할 모델입니다.

구현

특성

적용 대상

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Source:
ModelSource.cs
Source:
ModelSource.cs

캐시에서 모델을 반환하거나 캐시에 없는 경우 모델을 만듭니다.

public virtual 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
override this.GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable 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 virtual 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
override this.GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Internal.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable 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)

Source:
ModelSource.cs
Source:
ModelSource.cs
Source:
ModelSource.cs
Source:
ModelSource.cs

사용할 모델을 가져옵니다.

public virtual 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
override this.GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.ModelCreationDependencies * bool -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function GetModel (context As DbContext, modelCreationDependencies As ModelCreationDependencies, designTime As Boolean) As IModel

매개 변수

context
DbContext

모델이 생성되는 컨텍스트입니다.

modelCreationDependencies
ModelCreationDependencies

모델을 만드는 동안 사용되는 종속성 개체입니다.

designTime
Boolean

모델에 디자인 타임 구성이 포함되어야 하는지 여부입니다.

반환

사용할 모델입니다.

구현

적용 대상