EntityPropertyMappingAttribute Class
July 26, 2012
Attribute that specifies a custom mapping between properties of an entity type and elements of an entry in an AtomPub feed returned by the Open Data Protocol (OData) service.
Namespace:
System.Data.Services.Common
Assembly: System.Data.Services.Client (in System.Data.Services.Client.dll)
The EntityPropertyMappingAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | EntityPropertyMappingAttribute(String, SyndicationItemProperty, SyndicationTextContentKind, Boolean) | Creates a new instance of the EntityPropertyMappingAttribute. |
![]() | EntityPropertyMappingAttribute(String, String, String, String, Boolean) | Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element. |
| Name | Description | |
|---|---|---|
![]() | KeepInContent | Gets a Boolean value that indicates whether a property value should be repeated both in the content section of the feed and in the mapped location. |
![]() | SourcePath | Gets the name of the property of the syndication item that will be mapped to the specified element of the feed. |
![]() | TargetNamespacePrefix | Gets a string value that, together with TargetNamespaceUri, specifies the namespace in which the TargetPath element exists. |
![]() | TargetNamespaceUri | Gets a string value that specifies the namespace URI of the element specified by the TargetPath property. |
![]() | TargetPath | Gets the name of the custom target in the feed to which the property is mapped. |
![]() | TargetSyndicationItem | Gets a property on the SyndicationItem class. |
![]() | TargetTextContentKind | Gets the type of content of the property mapped by EntityPropertyMappingAttribute. |
The EntityPropertyMappingAttribute is applied to generated OData proxy classes when the metadata used to generate the classes indicates that custom feed mappings are defined in the data model. This information is necessary to make sure that the client can create and consume messages that support custom feeds. For more information, see Atom Feed Customization (WCF Data Services).


