IPropertyMapper Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(Func<IEdmModel,IEdmStructuredType,IPropertyMapper>). 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.
public interface IPropertyMapper
type IPropertyMapper = interface
Public Interface IPropertyMapper
Methods
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> |