Share via


EdmStructuredObject Class

Definition

Represents an IEdmStructuredObject with no backing CLR Type.

[Microsoft.AspNetCore.OData.Abstracts.NonValidatingParameterBinding]
public abstract class EdmStructuredObject : Microsoft.AspNetCore.OData.Deltas.Delta, Microsoft.AspNetCore.OData.Formatter.Value.IEdmChangedObject, Microsoft.AspNetCore.OData.Formatter.Value.IEdmStructuredObject
[<Microsoft.AspNetCore.OData.Abstracts.NonValidatingParameterBinding>]
type EdmStructuredObject = class
    inherit Delta
    interface IEdmStructuredObject
    interface IEdmObject
    interface IEdmChangedObject
Public MustInherit Class EdmStructuredObject
Inherits Delta
Implements IEdmChangedObject, IEdmStructuredObject
Inheritance
EdmStructuredObject
Derived
Attributes
Implements

Constructors

EdmStructuredObject(IEdmStructuredType)

Initializes a new instance of the EdmStructuredObject class.

EdmStructuredObject(IEdmStructuredType, Boolean)

Initializes a new instance of the EdmStructuredObject class.

EdmStructuredObject(IEdmStructuredTypeReference)

Initializes a new instance of the EdmStructuredObject class.

Properties

ActualEdmType

Gets or sets the actual IEdmStructuredType of the entity or complex type of this object.

ExpectedEdmType

Gets or sets the expected IEdmStructuredType of the entity or complex type of this object.

IsNullable

Gets or sets whether the EDM object is nullable or not.

Kind

DeltaKind for the objects part of the DeltaResourceSet Payload. Used to determine which Delta object to create during serialization.

Methods

Clear()

Clears the Delta and resets the underlying Entity.

GetChangedPropertyNames()

Returns the Properties that have been modified through this Delta as an enumeration of Property Names

GetEdmType()

Gets the IEdmTypeReference of this instance.

GetUnchangedPropertyNames()

Returns the Properties that have not been modified through this Delta as an enumeration of Property Names

TryGetDynamicProperties()

Get all dynamic properties

TryGetMember(GetMemberBinder, Object)

Overrides the DynamicObject TryGetMember method, so that only the properties of Entity can be got.

(Inherited from Delta)
TryGetPropertyType(String, Type)

Attempts to get the Type of the Property called name from the underlying Entity. Only properties that exist on Entity can be retrieved. Both modified and unmodified properties can be retrieved.

TryGetPropertyValue(String, Object)

Gets the value of the property with the given name.

TrySetMember(SetMemberBinder, Object)

Overrides the DynamicObject TrySetMember method, so that only the properties of Entity can be set.

(Inherited from Delta)
TrySetPropertyValue(String, Object)

Attempts to set the Property called name to the value specified. Only properties that exist on Entity can be set. If there is a type mismatch the request will fail.

Extension Methods

IsDeltaResource(IEdmObject)

Method to determine whether the current Edm object is a Delta resource

Applies to