EntitySetAttribute Class

Indicates the entity set to which a client data service class belongs.

Inheritance Hierarchy
SystemObject
   SystemAttribute
    System.Data.Services.CommonEntitySetAttribute

Namespace:   System.Data.Services.Common
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
<[%$TOPIC/dd780065_en-us_VS_113_2_0_0_0_0%]([%$TOPIC/dd780065_en-us_VS_113_2_0_0_0_1%].Class, AllowMultiple := False)> _
Public NotInheritable Class EntitySetAttribute _
	Inherits [%$TOPIC/dd780065_en-us_VS_113_2_0_0_0_2%]
Dim instance As EntitySetAttribute
[[%$TOPIC/dd780065_en-us_VS_113_2_0_2_0_0%]([%$TOPIC/dd780065_en-us_VS_113_2_0_2_0_1%].Class, AllowMultiple = false)]
public sealed class EntitySetAttribute : [%$TOPIC/dd780065_en-us_VS_113_2_0_2_0_2%]
[[%$TOPIC/dd780065_en-us_VS_113_2_0_3_0_0%]([%$TOPIC/dd780065_en-us_VS_113_2_0_3_0_1%]::Class, AllowMultiple = false)]
public ref class EntitySetAttribute sealed : public [%$TOPIC/dd780065_en-us_VS_113_2_0_3_0_2%]
[<SealedAttribute>]
[<[%$TOPIC/dd780065_en-us_VS_113_2_0_4_0_0%]([%$TOPIC/dd780065_en-us_VS_113_2_0_4_0_1%].Class, AllowMultiple = false)>]
type EntitySetAttribute =  
    class 
        inherit [%$TOPIC/dd780065_en-us_VS_113_2_0_4_0_2%] 
    end
public final class EntitySetAttribute extends [%$TOPIC/dd780065_en-us_VS_113_2_0_5_0_0%]

The EntitySetAttribute type exposes the following members.

Constructors
  NameDescription
Public method EntitySetAttributeCreates a new instance of the EntitySetAttribute.
Top
Properties
  NameDescription
Public property EntitySetGets the entity set to which the class belongs.
Public property TypeId (Inherited from Attribute.)
Top
Methods
  NameDescription
Public method Equals (Inherited from Attribute.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Public method ToString (Inherited from Object.)
Top
Remarks

The EntitySetAttribute class is used by the client during data binding to determine the name of the entity set to which a class belongs. This attribute is generated by the Add Service Reference dialog box when the Binding option is used and by the DataSvcUtil.exe tool when the /binding option is supplied.

You must apply the EntitySetAttribute to any user-supplied client data service classes that are used with data binding.

EntitySetAttribute is only supported when there is one entity set associated with the type.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.