共用方式為


EdmReference 類別

定義

代表 CSDL 檔中的 edmx:reference 元素。

public class EdmReference : Microsoft.OData.Edm.IEdmReference
type EdmReference = class
    interface IEdmReference
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
Public Class EdmReference
Implements IEdmReference
繼承
EdmReference
實作

建構函式

EdmReference(Uri)

建構函式。

屬性

IncludeAnnotations

取得參考模型的 IncludeAnnotations。

Includes

取得參考模型的 Include。

Uri

取得要載入參考模型的 URI。

方法

AddInclude(IEdmInclude)

新增包含資訊。

AddIncludeAnnotations(IEdmIncludeAnnotations)

新增 IncludeAnnotations 資訊。

擴充方法

GetSymbolicString(IEdmVocabularyAnnotatable)

取得批註專案的符號字串。 在下一個中斷性變更中,最好將屬性新增至 IEdmVocabularyAnnotatable

Location(IEdmElement)

取得此元素的位置。

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

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

Errors(IEdmElement)

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

IsBad(IEdmElement)

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

適用於