Language

EntitySetAttribute Class

Definition

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

[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
Inheritance
EntitySetAttribute
Attributes

Remarks

This attribute is generated only when there is one entity set associated with the type. When there are more than one entity set associated with the type, then the entity set name can be passed in through the EntitySetNameResolver event.

Constructors

Name Description
EntitySetAttribute(String)

Creates a new instance of the EntitySetAttribute.

Properties

Name Description
EntitySet

Gets the entity set to which the class belongs.

Applies to