Skip to main content

Definition

Assembly: Microsoft.Restier.AspNet.dll Namespace: Microsoft.Restier.AspNet Inheritance: Microsoft.OData.ODataPayloadValueConverter

Syntax

Microsoft.Restier.AspNet.RestierPayloadValueConverter

Summary

The default payload value converter in RESTier.

Constructors

.ctor

Syntax

public RestierPayloadValueConverter()

Methods

ConvertToPayloadValue Override

Converts the given primitive value defined in a type definition from the payload object.

Syntax

public override object ConvertToPayloadValue(object value, Microsoft.OData.Edm.IEdmTypeReference edmTypeReference)

Parameters

NameTypeDescription
valueobjectThe given CLR value.
edmTypeReferenceMicrosoft.OData.Edm.IEdmTypeReferenceThe expected type reference from model.

Returns

Type: object The converted payload value of the underlying type.