Share via


StringAsEnumResolver Class

Definition

Implementation for resolving a literal value without qualified namespace to enum type.

public sealed class StringAsEnumResolver : Microsoft.OData.UriParser.ODataUriResolver
type StringAsEnumResolver = class
    inherit ODataUriResolver
Public NotInheritable Class StringAsEnumResolver
Inherits ODataUriResolver
Inheritance
StringAsEnumResolver

Constructors

StringAsEnumResolver()

Properties

EnableCaseInsensitive

Whether to enable case insensitive for the resolver.

(Inherited from ODataUriResolver)
EnableNoDollarQueryOptions

Gets and sets the optional-$-sign-prefix for OData system query option.

(Inherited from ODataUriResolver)
TypeFacetsPromotionRules

Gets and sets promotion rules for type facets.

(Inherited from ODataUriResolver)

Methods

PromoteBinaryOperandTypes(BinaryOperatorKind, SingleValueNode, SingleValueNode, IEdmTypeReference)

Promote the left and right operand types, supports enum property and string constant scenario.

ResolveBoundOperations(IEdmModel, String, IEdmType)

Resolve bound operations based on name.

(Inherited from ODataUriResolver)
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.

ResolveNavigationSource(IEdmModel, String)

Resolve navigation source from model.

(Inherited from ODataUriResolver)
ResolveOperationImports(IEdmModel, String)

Resolve operation imports with certain name.

(Inherited from ODataUriResolver)
ResolveOperationParameters(IEdmOperation, IDictionary<String,SingleValueNode>)

Resolve operation's parameters. Using this extension, enum value could be written as string value.

ResolveProperty(IEdmStructuredType, String)

Resolve property from property name

(Inherited from ODataUriResolver)
ResolveTerm(IEdmModel, String)

Resolve term name from model.

(Inherited from ODataUriResolver)
ResolveType(IEdmModel, String)

Resolve type name from model.

(Inherited from ODataUriResolver)
ResolveUnboundOperations(IEdmModel, String)

Resolve unbound operations based on name.

(Inherited from ODataUriResolver)

Applies to