ODataUtils Class

Represents the utility methods used with the OData library.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataUtils

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ODataUtils
'Usage
public static class ODataUtils
[ExtensionAttribute]
public ref class ODataUtils abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ODataUtils =  class end
public final class ODataUtils

The ODataUtils type exposes the following members.

Methods

  Name Description
Public methodStatic member CreateAnnotationFilter 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.
Public methodStatic member GetHttpMethod Checks whether the annotatable has an HttpMethod annotation.
Public methodStatic member GetMimeType Checks whether the annotatable has a MIME type annotation.
Public methodStatic member GetReadFormat Returns the format used by the message reader for reading the payload.
Public methodStatic member HasDefaultStream Checks whether the entityType has a default stream.
Public methodStatic member IsAlwaysBindable Gets the value of IsAlwaysBindable annotation on the functionImport.
Public methodStatic member IsDefaultEntityContainer Checks whether the entityContainer is the default entity container.
Public methodStatic member LoadODataAnnotations(IEdmModel) Loads the supported, OData-specific serializable annotations into their in-memory representations.
Public methodStatic member LoadODataAnnotations(IEdmModel, IEdmEntityType) Loads the supported, OData-specific serializable annotations into their in-memory representations.
Public methodStatic member LoadODataAnnotations(IEdmModel, Int32) Loads the supported, OData-specific serializable annotations into their in-memory representations.
Public methodStatic member LoadODataAnnotations(IEdmModel, IEdmEntityType, Int32) Loads the supported, OData-specific serializable annotations into their in-memory representations.
Public methodStatic member NullValueReadBehaviorKind Gets the reader behavior for null property value on the specified property.
Public methodStatic member ODataVersionToString Displays the OData version to string representation.
Public methodStatic member SaveODataAnnotations(IEdmModel) Turns the in-memory representations of the supported, OData-specific annotations into their serializable form.
Public methodStatic member SaveODataAnnotations(IEdmModel, IEdmEntityType) Turns the in-memory representations of the supported, OData-specific annotations into their serializable form.
Public methodStatic member SetHasDefaultStream Adds or removes a default stream to/from the entityType.
Public methodStatic member SetHeadersForPayload Sets the content-type and data service version headers on the message used by the message writer.
Public methodStatic member SetHttpMethod Sets the HttpMethod annotation of the annotatable to httpMethod.
Public methodStatic member SetIsAlwaysBindable Sets the value of IsAlwaysBindable annotation of the functionImport to isAlwaysBindable
Public methodStatic member SetIsDefaultEntityContainer Adds or removes a default stream to/from the entityContainer.
Public methodStatic member SetMimeType Sets the MIME type annotation of the annotatable to mimeType.
Public methodStatic member SetNullValueReaderBehavior Adds a transient annotation to indicate how null values for the specified property should be read.
Public methodStatic member StringToODataVersion Displays a string to OData version representation.

Top

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

Reference

Microsoft.Data.OData Namespace