ModelSource.CreateModel Yöntem

Tanım

Aşırı Yüklemeler

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

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

CreateModel(DbContext, IConventionSetBuilder, ModelDependencies)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

CreateModel(DbContext, IConventionSetBuilder, IModelValidator)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

CreateModel(DbContext, IConventionSetBuilder, IModelValidator)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

CreateModel(DbContext, IConventionSetBuilder)

Dikkat

Use the overload with ModelDependencies

Dikkat

Use the overload with ModelCreationDependencies

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

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

CreateModel(DbContext, IConventionSetBuilder, ModelDependencies)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

protected virtual Microsoft.EntityFrameworkCore.Metadata.IModel CreateModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
abstract member CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
Protected Overridable Function CreateModel (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.

Şunlara uygulanır

CreateModel(DbContext, IConventionSetBuilder, IModelValidator)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

protected virtual Microsoft.EntityFrameworkCore.Metadata.IModel CreateModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator validator);
abstract member CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Protected Overridable Function CreateModel (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

CreateModel(DbContext, IConventionSetBuilder, IModelValidator)

Modeli oluşturur. Model önbellekte bulunamadığında bu yöntem çağrılır.

protected virtual Microsoft.EntityFrameworkCore.Metadata.IModel CreateModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Internal.IModelValidator validator);
abstract member CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Internal.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.CreateModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Internal.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Protected Overridable Function CreateModel (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