共用方式為


ConfigurationRegistrar 類別

定義

允許實體和複雜型別的衍生組態類別向 DbModelBuilder 註冊。

public class ConfigurationRegistrar
type ConfigurationRegistrar = class
Public Class ConfigurationRegistrar
繼承
ConfigurationRegistrar

備註

衍生組態類別是由 衍生自 System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfigurationSystem.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration 建立,並使用型別作為泛型參數包含在模型中。 您可以在 上 DbModelBuilder 透過 Entity 和 ComplexType 方法執行設定,而不需建立衍生的組態類別。

方法

Add<TComplexType>(ComplexTypeConfiguration<TComplexType>)

System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration 加入至 DbModelBuilder。 模型中每個類型只能新增一個 System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration

Add<TEntityType>(EntityTypeConfiguration<TEntityType>)

System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration 加入至 DbModelBuilder。 模型中每個類型只能新增一個 System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration

AddFromAssembly(Assembly)

探索繼承自 System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfigurationSystem.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration 指定元件中的所有類型,並將每個探索到類型的實例新增至這個註冊機構。

Equals(Object)

允許實體和複雜型別的衍生組態類別向 DbModelBuilder 註冊。

GetHashCode()

允許實體和複雜型別的衍生組態類別向 DbModelBuilder 註冊。

GetType()

取得目前執行個體的 Type

ToString()

允許實體和複雜型別的衍生組態類別向 DbModelBuilder 註冊。

適用於