Sdílet prostřednictvím


ODataUriResolver.ResolveKeys Metoda

Definice

Přetížení

ResolveKeys(IEdmEntityType, IDictionary<String,String>, Func<IEdmTypeReference,String,Object>)

Při řešení klíčů pro určitou sadu entit by se tato funkce volala, když je klíč zadaný jako páry hodnot názvů. Např. EntitySet(ID='key')

ResolveKeys(IEdmEntityType, IList<String>, Func<IEdmTypeReference,String,Object>)

Při řešení klíčů pro určitou sadu entit by se tato funkce volala, když je klíč zadaný jako poziční hodnoty. Např. EntitySet('klíč')

ResolveKeys(IEdmEntityType, IDictionary<String,String>, Func<IEdmTypeReference,String,Object>)

Při řešení klíčů pro určitou sadu entit by se tato funkce volala, když je klíč zadaný jako páry hodnot názvů. Např. 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))

Parametry

type
IEdmEntityType

Typ pro aktuální sadu entit.

namedValues
IDictionary<String,String>

Slovník dvojic name hodnota.

convertFunc
Func<IEdmTypeReference,String,Object>

Funkce převodu, která se má použít k převodu hodnoty.

Návraty

Seznam vyřešených klíčů

Platí pro

ResolveKeys(IEdmEntityType, IList<String>, Func<IEdmTypeReference,String,Object>)

Při řešení klíčů pro určitou sadu entit by se tato funkce volala, když je klíč zadaný jako poziční hodnoty. Např. EntitySet('klíč')

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))

Parametry

type
IEdmEntityType

Typ pro aktuální sadu entit.

positionalValues
IList<String>

Seznam pozičních hodnot.

convertFunc
Func<IEdmTypeReference,String,Object>

Funkce převodu, která se má použít k převodu hodnoty.

Návraty

Seznam vyřešených klíčů

Platí pro