共用方式為


StructuralTypeMapping 類別

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

指定結構類型對應。

繼承階層

System.Object
  System.Data.Entity.Core.Mapping.MappingItem
    System.Data.Entity.Core.Mapping.StructuralTypeMapping
      System.Data.Entity.Core.Mapping.ComplexTypeMapping
      System.Data.Entity.Core.Mapping.MappingFragment

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

語法

'宣告
Public MustInherit Class StructuralTypeMapping _
    Inherits MappingItem
'用途
Dim instance As StructuralTypeMapping
public abstract class StructuralTypeMapping : MappingItem
public ref class StructuralTypeMapping abstract : public MappingItem
[<AbstractClassAttribute>]
type StructuralTypeMapping =  
    class 
        inherit MappingItem 
    end
public abstract class StructuralTypeMapping extends MappingItem

StructuralTypeMapping 類型會公開下列成員。

建構函式

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

靠上

屬性

  名稱 描述
公用屬性 Conditions 取得屬性對應條件的唯讀集合。
公用屬性 PropertyMappings 取得屬性對應的唯讀集合。

靠上

方法

  名稱 描述
公用方法 AddCondition 加入屬性對應條件。
公用方法 AddPropertyMapping 加入屬性對應。
公用方法 Equals (繼承自 Object)。
受保護的方法 Finalize (繼承自 Object)。
公用方法 GetHashCode (繼承自 Object)。
公用方法 GetType (繼承自 Object)。
受保護的方法 MemberwiseClone (繼承自 Object)。
公用方法 RemoveCondition 移除屬性對應條件。
公用方法 RemovePropertyMapping 移除屬性對應。
公用方法 ToString (繼承自 Object)。

靠上

執行緒安全

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

請參閱

參考

System.Data.Entity.Core.Mapping 命名空間