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
屬性

適用於