ModelCreationDependencies 构造函数

定义

这是一个支持 Entity Framework Core 基础结构的内部 API,不受与公共 API 相同的兼容性标准的约束。 可能会在任何版本中更改或删除它,恕不另行通知。 应仅在代码中直接使用它,并且非常谨慎,并且知道在更新到新的 Entity Framework Core 版本时,这样做可能会导致应用程序失败。

public ModelCreationDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IModelSource modelSource, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies, Microsoft.EntityFrameworkCore.Infrastructure.IModelRuntimeInitializer modelRuntimeInitializer, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> validationLogger);
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelCreationDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IModelSource modelSource, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies, Microsoft.EntityFrameworkCore.Infrastructure.IModelRuntimeInitializer modelRuntimeInitializer, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> validationLogger);
new Microsoft.EntityFrameworkCore.ModelCreationDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IModelSource * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies * Microsoft.EntityFrameworkCore.Infrastructure.IModelRuntimeInitializer * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.ModelCreationDependencies
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelCreationDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IModelSource * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies * Microsoft.EntityFrameworkCore.Infrastructure.IModelRuntimeInitializer * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Model.Validation> -> Microsoft.EntityFrameworkCore.ModelCreationDependencies
Public Sub New (modelSource As IModelSource, conventionSetBuilder As IConventionSetBuilder, modelDependencies As ModelDependencies, modelRuntimeInitializer As IModelRuntimeInitializer, validationLogger As IDiagnosticsLogger(Of DbLoggerCategory.Model.Validation))

参数

modelSource
IModelSource
conventionSetBuilder
IConventionSetBuilder
modelDependencies
ModelDependencies
modelRuntimeInitializer
IModelRuntimeInitializer
属性

适用于