ODataUtils Class
Represents the utility methods used with the OData library.
Namespace: Microsoft.OData.Core
Assembly: Microsoft.OData.Core (in Microsoft.OData.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.OData.Core.ODataUtils
Syntax
public static class ODataUtils
[ExtensionAttribute]
public ref class ODataUtils abstract sealed
[<AbstractClass>]
[<Sealed>]
type ODataUtils = class end
<ExtensionAttribute>
Public NotInheritable Class ODataUtils
Methods
Name | Description | |
---|---|---|
AppendDefaultHeaderValue(String, String) | ||
CreateAnnotationFilter(String) | Translates the annotationFilter to a func that would evalutate whether the filter would match a given annotation name. The func would evaluate to true if the annotationFilter matches the annotation name that's passed to the it, and false otherwise. |
|
GenerateServiceDocument(IEdmModel) | ||
GetReadFormat(ODataMessageReader) | Returns the format used by the message reader for reading the payload. |
|
NullValueReadBehaviorKind(IEdmModel, IEdmProperty) | Gets the reader behavior for null property value on the specified property. |
|
ODataVersionToString(ODataVersion) | Displays the OData version to string representation. |
|
SetHeadersForPayload(ODataMessageWriter, ODataPayloadKind) | Sets the content-type and data service version headers on the message used by the message writer. |
|
SetNullValueReaderBehavior(IEdmModel, IEdmProperty, ODataNullValueBehaviorKind) | Adds a transient annotation to indicate how null values for the specified property should be read. |
|
StringToODataVersion(String) | Displays a string to OData version representation. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.OData.Core Namespace
Return to top