共用方式為


DbModelBuilder.Properties 方法

定義

多載

Properties()

開始設定適用于模型中所有屬性的輕量型慣例。

Properties<T>()

開始設定輕量型慣例,此慣例會套用至模型中指定類型的所有基本屬性。

Properties()

開始設定適用于模型中所有屬性的輕量型慣例。

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

傳回

慣例的組態物件。

適用於

Properties<T>()

開始設定輕量型慣例,此慣例會套用至模型中指定類型的所有基本屬性。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration Properties<T> ();
member this.Properties : unit -> System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionConfiguration
Public Function Properties(Of T) () As PropertyConventionConfiguration

類型參數

T

慣例將套用的屬性類型。

傳回

慣例的組態物件。

屬性

備註

慣例會同時套用至指定之型別的可為 Null 和不可為 Null 的屬性。

適用於