Table of Contents

Interface ISelectExpandWrapper

Namespace
System.Web.Http.OData.Query
Assembly
System.Web.Http.OData.dll

Represents the result of a $select and $expand query operation.

public interface ISelectExpandWrapper

Methods

ToDictionary()

Projects the result of a $select and $expand query to a IDictionary<TKey, TValue>.

IDictionary<string, object> ToDictionary()

Returns

IDictionary<string, object>

An IDictionary<TKey, TValue> representing the $select and $expand result.

ToDictionary(Func<IEdmModel, IEdmStructuredType, IPropertyMapper>)

Projects the result of a $select and/or $expand query to an IDictionary<TKey, TValue> using the given propertyMapperProvider. The propertyMapperProvider is used to obtain an IPropertyMapper for the Microsoft.Data.Edm.IEdmStructuredType that this ISelectExpandWrapper instance represents. This IPropertyMapper will be used to map the properties of the ISelectExpandWrapper instance to the keys of the returned IDictionary<TKey, TValue>. This method can be used, for example, to map the property names in the Microsoft.Data.Edm.IEdmStructuredType to the names that should be used to serialize the properties that this projection contains.

IDictionary<string, object> ToDictionary(Func<IEdmModel, IEdmStructuredType, IPropertyMapper> propertyMapperProvider)

Parameters

propertyMapperProvider Func<IEdmModel, IEdmStructuredType, IPropertyMapper>

A function that provides a new instance of an IPropertyMapper for a given Microsoft.Data.Edm.IEdmStructuredType and a given Microsoft.Data.Edm.IEdmModel.

Returns

IDictionary<string, object>

An IDictionary<TKey, TValue> representing the $select and $expand result.