語言

EdmModel 類別

定義

代表概念性或商店模型。 此類別可用來存取模型形狀及其配置方式的資訊。

public class EdmModel : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type EdmModel = class
    inherit MetadataItem
Public Class EdmModel
Inherits MetadataItem
繼承
EdmModel

屬性

名稱 Description
AssociationTypes

取得模型中的關聯類型。

BuiltInTypeKind

這類型有內建的類型。

ComplexTypes

取得模型中的複數類型。

Container

取得儲存實體集合和關聯集合的容器,以及函式匯入。

DataSpace

取得與模型相關的資料空間,判斷它是概念模型(DataSpace.CSpace)還是儲存模型(DataSpace.SSpace)。

Documentation

取得或設定與此類型相關的文件。

(繼承來源 MetadataItem)
EntityTypes

取得模型中的實體類型。

EnumTypes

取得模型中的列舉型別。

Functions

取得模型中的函數。

GlobalItems

取得與模型相關的全域項目。

MetadataProperties

取得目前類型的屬性清單。

(繼承來源 MetadataItem)

方法

名稱 Description
AddAnnotation(String, Object)

新增或更新標註,並附上指定的名稱與值。

(繼承來源 MetadataItem)
AddItem(AssociationType)

為模型新增關聯類型。

AddItem(ComplexType)

為模型加入複數型態。

AddItem(EdmFunction)

為模型新增一個函數。

AddItem(EntityType)

為模型新增一個實體類型。

AddItem(EnumType)

為模型新增一個列舉類型。

RemoveAnnotation(String)

移除帶有指定名稱的註解。

(繼承來源 MetadataItem)
RemoveItem(AssociationType)

從模型中移除一個關聯類型。

RemoveItem(ComplexType)

從模型中移除複數型。

RemoveItem(EdmFunction)

從模型中移除一個函數。

RemoveItem(EntityType)

從模型中移除一個實體類型。

RemoveItem(EnumType)

移除模型中的一個列舉類型。

適用於