ISelectExpandWrapper.ToDictionary Method

 

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

Overload List

Name Description
System_CAPS_pubmethod ToDictionary()

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

System_CAPS_pubmethod 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 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 IEdmStructuredType to the names that should be used to serialize the properties that this projection contains.

See Also

ISelectExpandWrapper Interface
System.Web.OData.Query Namespace

Return to top

ISelectExpandWrapper.ToDictionary Method ()

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

Syntax

IDictionary<string, object> ToDictionary()
IDictionary<String^, Object^>^ ToDictionary()
abstract ToDictionary : unit -> IDictionary<string, Object>
Function ToDictionary As IDictionary(Of String, Object)

Return Value

Type: System.Collections.Generic.IDictionary<String, Object>

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

Return to top

ISelectExpandWrapper.ToDictionary Method (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 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 IEdmStructuredType to the names that should be used to serialize the properties that this projection contains.

Syntax

IDictionary<string, object> ToDictionary(
    Func<IEdmModel, IEdmStructuredType, IPropertyMapper> propertyMapperProvider
)
IDictionary<String^, Object^>^ ToDictionary(
    Func<IEdmModel^, IEdmStructuredType^, IPropertyMapper^>^ propertyMapperProvider
)
abstract ToDictionary : 
        propertyMapperProvider:Func<IEdmModel, IEdmStructuredType, IPropertyMapper> -> IDictionary<string, Object>
Function ToDictionary (
    propertyMapperProvider As Func(Of IEdmModel, IEdmStructuredType, IPropertyMapper)
) As IDictionary(Of String, Object)

Parameters

Return Value

Type: System.Collections.Generic.IDictionary<String, Object>

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

Return to top