ModelConfigurationBuilder 建構函式

定義

多載

ModelConfigurationBuilder(ConventionSet)

初始化 ModelConfigurationBuilder 的新執行個體。

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

ModelConfigurationBuilder(ConventionSet)

初始化 ModelConfigurationBuilder 的新執行個體。

public ModelConfigurationBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions);
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet)

參數

conventions
ConventionSet

模型建置期間要套用的慣例。

備註

如需詳細資訊,請參閱 EF Core 中的預先慣例模型建 置。

適用於

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelConfigurationBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions, IServiceProvider serviceProvider);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet * IServiceProvider -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet, serviceProvider As IServiceProvider)

參數

conventions
ConventionSet
serviceProvider
IServiceProvider
屬性

適用於