EntityPropertyMappingAttribute.SourcePath Property

Gets the name of the property of the syndication item that will be mapped to the specified element of the feed.

Namespace:  System.Data.Services.Common
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public ReadOnly Property SourcePath As String 
    Get
'Usage
Dim instance As EntityPropertyMappingAttribute 
Dim value As String 

value = instance.SourcePath
public string SourcePath { get; }
public:
property String^ SourcePath {
    String^ get ();
}
member SourcePath : string
function get SourcePath () : String

Property Value

Type: System.String
String value that contains property name.

Remarks

The SourcePath property cannot directly reference a complex type. For complex types, you must use a path expression where property names are separated by a backslash (/) character. For example, the following values are permitted for an entity type Person with an integer property Age and a complex property Address:

  • Age

  • Address/Street

The SourcePath property cannot be set to a value that contains a space or any other character that is not valid in a property name.

See Also

Reference

EntityPropertyMappingAttribute Class

System.Data.Services.Common Namespace