System.Data.Entity.ModelConfiguration 命名空間

類別

名稱 Description
ComplexTypeConfiguration<TComplexType>

允許在模型中為複雜型態進行配置。 ComplexTypeConfiguration 可以透過 上的 DbModelBuilder ComplexType 方法取得,或透過 上的 DbModelBuilderConfigurations 屬性註冊由 ComplexTypeConfiguration 衍生的自訂類型。

EntityTypeConfiguration<TEntityType>

允許在模型中為實體類型進行設定。 EntityTypeConfiguration 可透過 上的 DbModelBuilder Entity 方法取得,或透過 上的 Configurations 屬性 DbModelBuilder註冊由 EntityTypeConfiguration 衍生的自訂型別。

ModelValidationException

當模型建立時產生無效模型時,會拋出 DbModelBuilder 異常。