ODataUriResolver.ResolveKeys Method
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.
Overloads
ResolveKeys(IEdmEntityType, IDictionary<String,String>, Func<IEdmTypeReference,String,Object>) |
Resolve keys for certain entity set, this function would be called when key is specified as name value pairs. E.g. EntitySet(ID='key') |
ResolveKeys(IEdmEntityType, IList<String>, Func<IEdmTypeReference,String,Object>) |
Resolve keys for certain entity set, this function would be called when key is specified as positional values. E.g. EntitySet('key') |
ResolveKeys(IEdmEntityType, IDictionary<String,String>, Func<IEdmTypeReference,String,Object>)
Resolve keys for certain entity set, this function would be called when key is specified as name value pairs. E.g. EntitySet(ID='key')
public virtual System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> ResolveKeys (Microsoft.OData.Edm.IEdmEntityType type, System.Collections.Generic.IDictionary<string,string> namedValues, Func<Microsoft.OData.Edm.IEdmTypeReference,string,object> convertFunc);
abstract member ResolveKeys : Microsoft.OData.Edm.IEdmEntityType * System.Collections.Generic.IDictionary<string, string> * Func<Microsoft.OData.Edm.IEdmTypeReference, string, obj> -> seq<System.Collections.Generic.KeyValuePair<string, obj>>
override this.ResolveKeys : Microsoft.OData.Edm.IEdmEntityType * System.Collections.Generic.IDictionary<string, string> * Func<Microsoft.OData.Edm.IEdmTypeReference, string, obj> -> seq<System.Collections.Generic.KeyValuePair<string, obj>>
Public Overridable Function ResolveKeys (type As IEdmEntityType, namedValues As IDictionary(Of String, String), convertFunc As Func(Of IEdmTypeReference, String, Object)) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
- type
- IEdmEntityType
Type for current entityset.
- namedValues
- IDictionary<String,String>
The dictionary of name value pairs.
- convertFunc
- Func<IEdmTypeReference,String,Object>
The convert function to be used for value converting.
Returns
The resolved key list.
Applies to
ResolveKeys(IEdmEntityType, IList<String>, Func<IEdmTypeReference,String,Object>)
Resolve keys for certain entity set, this function would be called when key is specified as positional values. E.g. EntitySet('key')
public virtual System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> ResolveKeys (Microsoft.OData.Edm.IEdmEntityType type, System.Collections.Generic.IList<string> positionalValues, Func<Microsoft.OData.Edm.IEdmTypeReference,string,object> convertFunc);
abstract member ResolveKeys : Microsoft.OData.Edm.IEdmEntityType * System.Collections.Generic.IList<string> * Func<Microsoft.OData.Edm.IEdmTypeReference, string, obj> -> seq<System.Collections.Generic.KeyValuePair<string, obj>>
override this.ResolveKeys : Microsoft.OData.Edm.IEdmEntityType * System.Collections.Generic.IList<string> * Func<Microsoft.OData.Edm.IEdmTypeReference, string, obj> -> seq<System.Collections.Generic.KeyValuePair<string, obj>>
Public Overridable Function ResolveKeys (type As IEdmEntityType, positionalValues As IList(Of String), convertFunc As Func(Of IEdmTypeReference, String, Object)) As IEnumerable(Of KeyValuePair(Of String, Object))
Parameters
- type
- IEdmEntityType
Type for current entityset.
- convertFunc
- Func<IEdmTypeReference,String,Object>
The convert function to be used for value converting.
Returns
The resolved key list.