共用方式為


Convention.Types 方法

定義

多載

Types()

開始設定適用于模型中所有對應類型的輕量型慣例。

Types<T>()

開始設定輕量型慣例,此慣例會套用至衍生自或實作指定型別之模型中的所有對應型別。

Types()

開始設定適用于模型中所有對應類型的輕量型慣例。

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration Types ();
member this.Types : unit -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration
Public Function Types () As TypeConventionConfiguration

傳回

慣例的組態物件。

適用於

Types<T>()

開始設定輕量型慣例,此慣例會套用至衍生自或實作指定型別之模型中的所有對應型別。

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<T> Types<T> () where T : class;
member this.Types : unit -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Types(Of T As Class) () As TypeConventionConfiguration(Of T)

類型參數

T

此慣例將套用至的實體類型。

傳回

慣例的組態物件。

備註

這個方法不會將新類型新增至模型。

適用於