Jaa


ISelectExpandWrapper.ToDictionary Method

Definition

Overloads

ToDictionary()

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

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.

ToDictionary()

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

public System.Collections.Generic.IDictionary<string,object> ToDictionary ();
abstract member ToDictionary : unit -> System.Collections.Generic.IDictionary<string, obj>
Public Function ToDictionary () As IDictionary(Of String, Object)

Returns

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

Applies to

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.

public System.Collections.Generic.IDictionary<string,object> ToDictionary (Func<Microsoft.OData.Edm.IEdmModel,Microsoft.OData.Edm.IEdmStructuredType,Microsoft.AspNet.OData.Query.IPropertyMapper> propertyMapperProvider);
abstract member ToDictionary : Func<Microsoft.OData.Edm.IEdmModel, Microsoft.OData.Edm.IEdmStructuredType, Microsoft.AspNet.OData.Query.IPropertyMapper> -> System.Collections.Generic.IDictionary<string, obj>
Public Function ToDictionary (propertyMapperProvider As Func(Of IEdmModel, IEdmStructuredType, IPropertyMapper)) As IDictionary(Of String, Object)

Parameters

propertyMapperProvider
Func<IEdmModel,IEdmStructuredType,IPropertyMapper>

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

Returns

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

Applies to