Aracılığıyla paylaş


IModelSource.GetModel Yöntem

Tanım

Aşırı Yüklemeler

GetModel(DbContext, IConventionSetBuilder)
Geçersiz.
Geçersiz.

Kullanılacak modeli alır.

GetModel(DbContext, IConventionSetBuilder, ModelDependencies)
Geçersiz.

Kullanılacak modeli alır.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Kullanılacak modeli alır.

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Kullanılacak modeli alır.

GetModel(DbContext, ModelCreationDependencies, Boolean)

Kullanılacak modeli alır.

GetModel(DbContext, IConventionSetBuilder)

Dikkat

Use the overload with ModelDependencies

Dikkat

Use the overload with ModelCreationDependencies

Kullanılacak modeli alır.

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

Parametreler

context
DbContext

Modelin üretildiği bağlam.

conventionSetBuilder
IConventionSetBuilder

Kural, modeli oluştururken kullanılacak şekilde ayarlanmıştır.

Döndürülenler

Kullanılacak model.

Öznitelikler

Şunlara uygulanır

GetModel(DbContext, IConventionSetBuilder, ModelDependencies)

Dikkat

Use the overload with ModelCreationDependencies

Kullanılacak modeli alır.

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

Parametreler

context
DbContext

Modelin üretildiği bağlam.

conventionSetBuilder
IConventionSetBuilder

Kural, modeli oluştururken kullanılacak şekilde ayarlanmıştır.

modelDependencies
ModelDependencies

Modelin dependencies nesnesi.

Döndürülenler

Kullanılacak model.

Öznitelikler

Şunlara uygulanır

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Kullanılacak modeli alır.

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

Parametreler

context
DbContext

Modelin üretildiği bağlam.

conventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder

Kural, modeli oluştururken kullanılacak şekilde ayarlanmıştır.

validator
IModelValidator

Modeli doğrulamak için doğrulayıcı bağlamla birlikte başarıyla kullanılabilir.

Döndürülenler

Kullanılacak model.

Şunlara uygulanır

GetModel(DbContext, IConventionSetBuilder, IModelValidator)

Kullanılacak modeli alır.

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

Parametreler

context
DbContext

Modelin üretildiği bağlam.

conventionSetBuilder
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder

Kural, modeli oluştururken kullanılacak şekilde ayarlanmıştır.

validator
Microsoft.EntityFrameworkCore.Internal.IModelValidator

Modeli doğrulamak için doğrulayıcı bağlamla birlikte başarıyla kullanılabilir.

Döndürülenler

Kullanılacak model.

Şunlara uygulanır

GetModel(DbContext, ModelCreationDependencies, Boolean)

Kullanılacak modeli alır.

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

Parametreler

context
DbContext

Modelin üretildiği bağlam.

modelCreationDependencies
ModelCreationDependencies

Modelin oluşturulması sırasında kullanılan bağımlılıklar nesnesi.

designTime
Boolean

Modelin tasarım zamanı yapılandırması içermesi gerekip gerekmediği.

Döndürülenler

Kullanılacak model.

Şunlara uygulanır