Jaa


StringAsEnumResolver.ResolveKeys Method

Definition

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') Enum value could omit type name prefix using this resolver.

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') Enum value could omit type name prefix using this resolver.

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') Enum value could omit type name prefix using this resolver.

public override 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);
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 Overrides 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') Enum value could omit type name prefix using this resolver.

public override 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);
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 Overrides 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.

positionalValues
IList<String>

The list of positional values.

convertFunc
Func<IEdmTypeReference,String,Object>

The convert function to be used for value converting.

Returns

The resolved key list.

Applies to