Share via


ODataResourceSerializer Class

Definition

ODataSerializer for serializing instances of IEdmEntityType or IEdmComplexType

public class ODataResourceSerializer : Microsoft.AspNet.OData.Formatter.Serialization.ODataEdmTypeSerializer
type ODataResourceSerializer = class
    inherit ODataEdmTypeSerializer
Public Class ODataResourceSerializer
Inherits ODataEdmTypeSerializer
Inheritance

Constructors

ODataResourceSerializer(ODataSerializerProvider) System.Object.#ctor(Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerProvider)

Properties

ODataPayloadKind

Gets the ODataPayloadKind that this serializer generates.

(Inherited from ODataSerializer)
SerializerProvider

Gets the ODataSerializerProvider that can be used to write inner objects.

(Inherited from ODataEdmTypeSerializer)

Methods

AppendDynamicProperties(ODataResource, SelectExpandNode, ResourceContext)

Appends the dynamic properties of primitive, enum or the collection of them into the given ODataResource. If the dynamic property is a property of the complex or collection of complex, it will be saved into the dynamic complex properties dictionary of resourceContext and be written later.

AppendInstanceAnnotations(ODataResource, ResourceContext)

Method to append InstanceAnnotations to the ODataResource and Property. Instance annotations are annotations for a resource or a property and couldb be of contain a primitive, comple , enum or collection type These will be saved in to an Instance annotation dictionary

CreateETag(ResourceContext)

Creates the ETag for the given entity.

CreateNavigationLink(IEdmNavigationProperty, ResourceContext)

Creates the ODataNestedResourceInfo to be written while writing this entity.

CreateODataAction(IEdmAction, ResourceContext)

Creates an ODataAction to be written for the given action and the entity instance.

CreateODataFunction(IEdmFunction, ResourceContext)

Creates an ODataFunction to be written for the given action and the entity instance.

CreateODataValue(Object, IEdmTypeReference, ODataSerializerContext)

Creates an ODataValue for the object represented by graph.

(Inherited from ODataEdmTypeSerializer)
CreateResource(SelectExpandNode, ResourceContext)

Creates the ODataResource to be written while writing this resource.

CreateSelectExpandNode(ResourceContext)

Creates the SelectExpandNode that describes the set of properties and actions to select and expand while writing this entity.

CreateStructuralProperty(IEdmStructuralProperty, ResourceContext)

Creates the ODataProperty to be written for the given entity and the structural property.

WriteDeltaObjectInline(Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a part of an existing OData message using the given deltaWriter and the writeContext.

WriteDeltaObjectInlineAsync(Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a part of an existing OData message using the given deltaWriter and the writeContext.

WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.

WriteObjectAsync(Object, Type, ODataMessageWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.

WriteObjectInline(Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext.

WriteObjectInlineAsync(Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)

Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext.

Applies to