IPropertyMapper Interface

 

The result of a $select and $expand projection is represented as an ISelectExpandWrapper instance. That instance can be projected into an IDictionary<TKey, TValue> instance by calling ToDictionary. That method will use the function to construct an IPropertyMapper that will map the property names in that projection to the keys in the returned IDictionary<TKey, TValue>. The main purpose of converting an ISelectExpandWrapper instance into an IDictionary<TKey, TValue> (using the method mentioned above) is to allow changing the names of the properties in the IEdmStructuredType that will be used during the serialization of the $select and $expand projection by a given formatter. For example, to support custom serialization attributes of a particular formatter.

Namespace:   System.Web.OData.Query
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public interface IPropertyMapper
public interface class IPropertyMapper
type IPropertyMapper = interface end
Public Interface IPropertyMapper

Methods

Name Description
System_CAPS_pubmethod MapProperty(String)

Defines a mapping between the name of an IEdmProperty of an IEdmStructuredType and the name that should be used in other contexts, for example, when projecting an instance of an ISelectExpandWrapper into an instance of an IDictionary<TKey, TValue>

See Also

System.Web.OData.Query Namespace

Return to top