Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

EntitySetAttribute Class

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

System.Object
  System.Attribute
    System.Data.Services.Common.EntitySetAttribute

Namespace:  System.Data.Services.Common
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class EntitySetAttribute : Attribute

The EntitySetAttribute type exposes the following members.

  NameDescription
Public methodEntitySetAttributeCreates a new instance of the EntitySetAttribute.
Top
  NameDescription
Public propertyEntitySetGets the entity set to which the class belongs.
Public propertyTypeId (Inherited from Attribute.)
Top
  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.