IncludeAttribute Class
WCF RIA Services
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Specifies that the association should be part of any code-generated client entities.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
The IncludeAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IncludeAttribute() | Initializes a new instance of the IncludeAttribute class. |
![]() | IncludeAttribute(String, String) | Initializes a new instance of the IncludeAttribute class with the specified member projection. |
| Name | Description | |
|---|---|---|
![]() | IsProjection | Gets a value that indicates whether this attribute specifies a member projection. |
![]() | MemberName | Gets the name of the destination member for the projection. |
![]() | Path | Gets the member projection path. |
![]() | TypeId | Gets a unique identifier for this attribute. (Overrides Attribute.TypeId.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Attribute.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Attribute.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsDefaultAttribute | (Inherited from Attribute.) |
![]() | Match | (Inherited from Attribute.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
When applied to an entity association, this attribute specifies that the association should be part of any code-generated client entities, and that any related entities should be included when serializing results to the client. In the query method, you must ensure that the associated entities are actually loaded by using the Include method on the query. This attribute can also be used to specify member projections.
Show:
