EntitySetAttribute 類別

定義

表示用戶端資料服務類別所屬的實體集。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class EntitySetAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type EntitySetAttribute = class
    inherit Attribute
Public NotInheritable Class EntitySetAttribute
Inherits Attribute
繼承
EntitySetAttribute
屬性

備註

只有在有一個與型別相關聯的實體集時,才會產生這個屬性。 當有一個以上的實體集與類型相關聯時,就可以透過 EntitySetNameResolver 事件傳入實體集名稱。

建構函式

EntitySetAttribute(String)

建立 EntitySetAttribute 的新執行個體。

屬性

EntitySet

取得類別所屬的實體集。

適用於