共用方式為


EdmEntityType 類別

定義

表示 EDM 實體類型的定義。

public class EdmEntityType : Microsoft.OData.Edm.EdmStructuredType, Microsoft.OData.Edm.IEdmEntityType, Microsoft.OData.Edm.IEdmFullNamedElement
type EdmEntityType = class
    inherit EdmStructuredType
    interface IEdmEntityType
    interface IEdmStructuredType
    interface IEdmType
    interface IEdmElement
    interface IEdmSchemaType
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmVocabularyAnnotatable
    interface IEdmFullNamedElement
Public Class EdmEntityType
Inherits EdmStructuredType
Implements IEdmEntityType, IEdmFullNamedElement
繼承
實作

建構函式

EdmEntityType(String, String, IEdmEntityType, Boolean, Boolean, Boolean)

初始化 EdmEntityType 類別的新執行個體。

EdmEntityType(String, String, IEdmEntityType, Boolean, Boolean)

初始化 EdmEntityType 類別的新執行個體。

EdmEntityType(String, String, IEdmEntityType)

初始化 EdmEntityType 類別的新執行個體。

EdmEntityType(String, String)

初始化 EdmEntityType 類別的新執行個體。

屬性

BaseType

取得這個型別的基底類型 (Base Type)。

(繼承來源 EdmStructuredType)
DeclaredKey

取得構成實體索引鍵之實體類型的結構化屬性。

DeclaredProperties

取得在此型別內即時宣告的屬性。

(繼承來源 EdmStructuredType)
FullName

取得這個架構專案的完整名稱。

HasStream

取得值,指出此實體是否為媒體類型 這個值繼承自基底類型。

IsAbstract

取得表示這個型別是否為抽象的值。

(繼承來源 EdmStructuredType)
IsOpen

取得值,這個值表示此型別是否為開放型別。

(繼承來源 EdmStructuredType)
Name

取得此元素的名稱。

Namespace

取得此結構描述元素所屬的命名空間。

PropertiesDictionary

取得此類型定義中屬性的字典,以加快查閱速度。

(繼承來源 EdmStructuredType)
SchemaElementKind

取得此結構描述元素的類型。

TypeKind

取得此型別的類型。

方法

AddBidirectionalNavigation(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)

建立導覽屬性並將其加入至此型別,再將其導覽夥伴加入至導覽目標型別。

AddKeys(IEdmStructuralProperty[])

keyProperties將 加入至這個實體類型的索引鍵。

AddKeys(IEnumerable<IEdmStructuralProperty>)

keyProperties將 加入至這個實體類型的索引鍵。

AddProperty(IEdmProperty)

property將 加入至這個類型。 DeclaringType property的 必須是這個類型。

(繼承來源 EdmStructuredType)
AddStructuralProperty(String, EdmPrimitiveTypeKind, Boolean)

建立可為 Null 的結構化屬性並將其加入至此型別。

(繼承來源 EdmStructuredType)
AddStructuralProperty(String, EdmPrimitiveTypeKind)

建立可為 Null 的結構化屬性並將其加入至此型別。

(繼承來源 EdmStructuredType)
AddStructuralProperty(String, IEdmTypeReference, String)

建立結構化屬性並將其加入至此型別。

(繼承來源 EdmStructuredType)
AddStructuralProperty(String, IEdmTypeReference)

建立結構化屬性並將其加入至此型別。

(繼承來源 EdmStructuredType)
AddUnidirectionalNavigation(EdmNavigationPropertyInfo)

建立單向導覽屬性並將其加入至此型別。

(繼承來源 EdmStructuredType)
FindProperty(String)

以指定之名稱在此型別及所有基底類型中搜尋結構化或導覽屬性,如果沒有這樣的屬性則傳回 null。

(繼承來源 EdmStructuredType)
SetNavigationPropertyPartner(EdmNavigationProperty, IEdmPathExpression, EdmNavigationProperty, IEdmPathExpression)

設定最上層導覽屬性的合作夥伴資訊。

ToString()

傳回目前物件的文字表示。

(繼承來源 EdmType)

擴充方法

IsEquivalentTo(IEdmType, IEdmType)

如果相比較的型別在語意上等於此型別,則傳回 true。 架構類型 (IEdmSchemaType) 會與其物件 ref 進行比較。

AsActualType(IEdmType)

傳回指定型別的實際型別。 如果指定的類型是類型定義,則實際類型是其基礎類型;否則,傳回指定的型別本身。

InheritsFrom(IEdmStructuredType, IEdmStructuredType)

判斷潛在基底類型是否位於所測試型別的繼承階層中。

IsBinary(IEdmType)

如果這個定義參考二進位類型,則傳回 true。

IsDecimal(IEdmType)

如果這個定義參考十進位類型,則傳回 true。

IsGeography(IEdmType)

如果這個定義參考 geography 類型,則傳回 true。

IsGeometry(IEdmType)

如果這個定義參考幾何類型,則傳回 true。

IsOnSameTypeHierarchyLineWith(IEdmType, IEdmType)

判斷 thisType 是否與 otherType 相同,或 thisType 衍生自 otherType,或 otherType 衍生自 thisType。

IsOrInheritsFrom(IEdmType, IEdmType)

判斷類型是否相當於或衍生自另一種類型。

IsSpatial(IEdmType)

如果這個定義參考空間類型,則傳回 true。

IsStream(IEdmType)

如果這個參考參考資料流類型,則傳回 true。

IsString(IEdmType)

如果這個定義參考字串類型,則傳回 true。

IsTemporal(IEdmType)

如果這個定義參考時態型別,則傳回 true。

IsUntyped(IEdmType)

如果這個定義參考不具類型的類型,則傳回 true。

GetSymbolicString(IEdmVocabularyAnnotatable)

取得標注專案的符號字串。 在下一個重大變更中,最好是將 屬性新增至 IEdmVocabularyAnnotatable

AsElementType(IEdmType)

取得集合定義的專案類型,或類型參考所參考之非集合定義的本身。

BaseEntityType(IEdmEntityType)

取得這個實體類型定義的基底類型。

BaseType(IEdmStructuredType)

取得這個結構化型別定義的基底型別。

DeclaredNavigationProperties(IEdmStructuredType)

取得這個結構化型別定義中所宣告的導覽屬性。

DeclaredStructuralProperties(IEdmStructuredType)

取得 IEdmStructuredTypeDefinition 中宣告的所有結構化屬性。

FullName(IEdmSchemaElement)

取得專案的完整名稱。

FullTypeName(IEdmType)

取得型別參考所參考定義的完整名稱。

HasDeclaredKeyProperty(IEdmEntityType, IEdmProperty)

檢查指定的實體類型是否具有 property 做為其中一個索引鍵屬性。

IsOpen(IEdmType)

如果開啟這個參考的定義,則傳回 true。

Key(IEdmEntityType)

取得具有已宣告索引鍵之最定義實體的宣告索引鍵。

Location(IEdmElement)

取得此元素的位置。

NavigationProperties(IEdmStructuredType)

取得這個結構化型別和所有基底類型中所宣告的導覽屬性。

Properties(IEdmStructuredType)

取得結構化型別定義及其基底型別的所有屬性。

ShortQualifiedName(IEdmSchemaElement)

取得專案的簡短限定名稱。

StructuralProperties(IEdmStructuredType)

取得在此類型定義和所有基底類型中宣告的結構屬性。

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

取得從特定模型中所見之可註釋元素的詞彙註釋。

ToTraceString(IEdmSchemaElement)

傳回目前物件的文字表示。

ToTraceString(IEdmSchemaType)

傳回目前物件的文字表示。

ToTraceString(IEdmType)

傳回目前物件的文字表示。

Errors(IEdmElement)

取得屬於此元素或此元素所包含之元素的錯誤 (如果有的話)。 例如,結構化型別的錯誤包括型別本身的錯誤及其宣告屬性的錯誤。 該方法不會分析此元素所參考的元素。 例如,屬性的錯誤不包括其型別中的錯誤。

IsBad(IEdmElement)

如果這個專案包含 方法傳回的錯誤, Errors(IEdmElement) 則傳回 true。

適用於