共用方式為


EntitySet 類別

定義

表示 EntityType 中所定義之結構的特定用法。 在概念模型中,這代表可以查詢和保存實體的集合。 在 Store-model 中,它代表資料表。 從儲存空間模型慣例中,它可以用來使用 屬性設定資料表名稱 Table ,並使用 屬性設定 Schema 資料表架構。

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

屬性

BuiltInTypeKind

取得這個 EntitySet 的內建型別類型。

DefiningQuery

取得描述此實體集的逸出提供者特定 SQL。

(繼承來源 EntitySetBase)
Documentation

取得或設定與這個型別相關聯的文件。

(繼承來源 MetadataItem)
ElementType

取得這個 EntitySet 的實體型別。

EntityContainer

取得目前的實體或關聯性集合的實體容器。

(繼承來源 EntitySetBase)
MetadataProperties

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

(繼承來源 MetadataItem)
Name

取得或設定目前實體或關聯性集的名稱。 如果此屬性從存放區空間變更,則也必須更新對應圖層,以反映新的名稱。 若要變更存放區空間 EntitySet 的資料表名稱,請使用 Table 屬性。

(繼承來源 EntitySetBase)
Schema

取得或設定這個實體集的資料庫架構。

(繼承來源 EntitySetBase)
Table

取得或設定這個實體集的資料庫資料表名稱。

(繼承來源 EntitySetBase)

方法

AddAnnotation(String, Object)

新增或更新具有指定名稱和值的注釋。

(繼承來源 MetadataItem)
Create(String, String, String, String, EntityType, IEnumerable<MetadataProperty>)

用來建構 EntitySet 物件的 Factory 方法。

RemoveAnnotation(String)

移除具有指定名稱的批註。

(繼承來源 MetadataItem)
ToString()

傳回目前的實體或關聯性集合的名稱。

(繼承來源 EntitySetBase)

擴充方法

CreateRef(EntitySet, IEnumerable<DbExpression>)

建立會根據索引鍵值將參考編碼為特定實體的新 DbRefExpression

CreateRef(EntitySet, DbExpression[])

建立會根據索引鍵值將參考編碼為特定實體的新 DbRefExpression

CreateRef(EntitySet, EntityType, IEnumerable<DbExpression>)

建立新的 DbRefExpression,它會根據索引鍵值將參考編碼為給定型別的特定實體。

CreateRef(EntitySet, EntityType, DbExpression[])

建立新的 DbRefExpression,它會根據索引鍵值將參考編碼為給定型別的特定實體。

RefFromKey(EntitySet, DbExpression, EntityType)

建立新的 DbRefExpression,其會根據索引鍵值編碼指定的實體的參考。

RefFromKey(EntitySet, DbExpression)

建立新的 DbRefExpression,其會根據索引鍵值編碼指定的實體的參考。

Scan(EntitySetBase)

建立新的 DbScanExpression,這個運算式會參考指定實體或關聯性集合。

適用於