This topic has not yet been rated - Rate this topic

EntityPropertyMappingAttribute Constructor (String, String, String, String, Boolean)

Creates an instance of the EntityPropertyMappingAttribute to map a property to a custom feed element.

Namespace:  System.Data.Services.Common
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)
public EntityPropertyMappingAttribute(
	string sourcePath,
	string targetPath,
	string targetNamespacePrefix,
	string targetNamespaceUri,
	bool keepInContent
)

Parameters

sourcePath
Type: System.String
The name of the property of the entity type, as string, that is mapped to the specified property in the AtomPub feed.
targetPath
Type: System.String
The name of the target, as string, in the resulting feed to which the property is mapped.
targetNamespacePrefix
Type: System.String
This parameter, together with targetNamespaceUri, specifies the namespace in which the targetName element exists.
targetNamespaceUri
Type: System.String
Specifies the namespace URI of the element, as string, specified by the targetName property.
keepInContent
Type: System.Boolean
A Boolean value that is true when the property being mapped should appear both in its mapped-to location and in the content section of the feed.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.