共用方式為


StructuralTypeConfiguration<TStructuralType> 類別

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

允許針對模型中的類型執行組態。

繼承階層

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.StructuralTypeConfiguration<TStructuralType>
    System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
    System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType>

命名空間:  System.Data.Entity.ModelConfiguration.Configuration
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType As Class)
'用途
Dim instance As StructuralTypeConfiguration(Of TStructuralType)
public abstract class StructuralTypeConfiguration<TStructuralType>
where TStructuralType : class
generic<typename TStructuralType>
where TStructuralType : ref class 
public ref class StructuralTypeConfiguration abstract
[<AbstractClassAttribute>]
type StructuralTypeConfiguration<'TStructuralType when 'TStructuralType : not struct> =  class end
JScript does not support generic types and methods.

類型參數

  • TStructuralType
    要設定的類型。

StructuralTypeConfiguration<TStructuralType> 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 StructuralTypeConfiguration<TStructuralType> 初始化 StructuralTypeConfiguration<TStructuralType> 類別的新執行個體。

靠上

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (覆寫 Object.Equals(Object)。)
受保護的方法 Finalize (繼承自 Object)。
公用方法 GetHashCode 做為特定類型的雜湊函式。 (覆寫 Object.GetHashCode()。)
公用方法 GetType 取得目前執行個體的 Type
受保護的方法 MemberwiseClone (繼承自 Object)。
公用方法 Property(Expression<Func<TStructuralType, array<Byte[]>>) 設定在此類型上定義的 byte 屬性。
公用方法 Property(Expression<Func<TStructuralType, DateTime>>) 設定在此類型上定義的 DateTime 屬性。
公用方法 Property(Expression<Func<TStructuralType, DateTimeOffset>>) 設定在此類型上定義的 DateTimeOffset 屬性。
公用方法 Property(Expression<Func<TStructuralType, Decimal>>) 設定在此類型上定義的 decimal 屬性。
公用方法 Property(Expression<Func<TStructuralType, Nullable<DateTime>>>) 設定在此類型上定義的 [T:System.DateTime?] 屬性。
公用方法 Property(Expression<Func<TStructuralType, Nullable<DateTimeOffset>>>) 設定在此類型上定義的 [T:System.DateTimeOffset?] 屬性。
公用方法 Property(Expression<Func<TStructuralType, Nullable<Decimal>>>) 設定在此類型上定義的 [T:System.decimal?] 屬性。
公用方法 Property(Expression<Func<TStructuralType, Nullable<TimeSpan>>>) 設定在此類型上定義的 [T:System.TimeSpan?] 屬性。
公用方法 Property(Expression<Func<TStructuralType, String>>) 設定在此類型上定義的 string 屬性。
公用方法 Property(Expression<Func<TStructuralType, TimeSpan>>) 設定在此類型上定義的 TimeSpan 屬性。
公用方法 Property(Expression<Func<TStructuralType, DbGeography>>) 設定在此類型上定義的 DbGeography 屬性。
公用方法 Property(Expression<Func<TStructuralType, DbGeometry>>) 設定在此類型上定義的 DbGeometry 屬性。
公用方法 Property<T>(Expression<Func<TStructuralType, Nullable<T>>>) 設定在此類型上定義的 [T:System.struct?] 屬性。
公用方法 Property<T>(Expression<Func<TStructuralType, T>>) 設定在此類型上定義的 struct 屬性。
公用方法 ToString 傳回代表目前物件的字串。 (覆寫 Object.ToString()。)

靠上

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

System.Data.Entity.ModelConfiguration.Configuration 命名空間