Table of Contents

Class EdmStructuredObject

Namespace
System.Web.Http.OData
Assembly
System.Web.Http.OData.dll

Represents an IEdmStructuredObject with no backing CLR Type.

public abstract class EdmStructuredObject : Delta, IDynamicMetaObjectProvider, IDelta, IEdmStructuredObject, IEdmObject
Inheritance
EdmStructuredObject
Implements
Derived
Inherited Members

Constructors

EdmStructuredObject(IEdmStructuredType)

Initializes a new instance of the EdmStructuredObject class.

protected EdmStructuredObject(IEdmStructuredType edmType)

Parameters

edmType IEdmStructuredType

The Microsoft.Data.Edm.IEdmStructuredType of this object.

EdmStructuredObject(IEdmStructuredType, bool)

Initializes a new instance of the EdmStructuredObject class.

protected EdmStructuredObject(IEdmStructuredType edmType, bool isNullable)

Parameters

edmType IEdmStructuredType

The Microsoft.Data.Edm.IEdmStructuredTypeReference of this object.

isNullable bool

true if this object can be nullable; otherwise, false.

EdmStructuredObject(IEdmStructuredTypeReference)

Initializes a new instance of the EdmStructuredObject class.

protected EdmStructuredObject(IEdmStructuredTypeReference edmType)

Parameters

edmType IEdmStructuredTypeReference

The Microsoft.Data.Edm.IEdmStructuredTypeReference of this object.

Properties

ActualEdmType

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

public IEdmStructuredType ActualEdmType { get; set; }

Property Value

IEdmStructuredType

ExpectedEdmType

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

public IEdmStructuredType ExpectedEdmType { get; set; }

Property Value

IEdmStructuredType

IsNullable

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

public bool IsNullable { get; set; }

Property Value

bool

Methods

Clear()

public override void Clear()

GetChangedPropertyNames()

public override IEnumerable<string> GetChangedPropertyNames()

Returns

IEnumerable<string>

GetEdmType()

public IEdmTypeReference GetEdmType()

Returns

IEdmTypeReference

GetUnchangedPropertyNames()

public override IEnumerable<string> GetUnchangedPropertyNames()

Returns

IEnumerable<string>

TryGetPropertyType(string, out Type)

public override bool TryGetPropertyType(string name, out Type type)

Parameters

name string
type Type

Returns

bool

TryGetPropertyValue(string, out object)

public override bool TryGetPropertyValue(string name, out object value)

Parameters

name string
value object

Returns

bool

TrySetPropertyValue(string, object)

public override bool TrySetPropertyValue(string name, object value)

Parameters

name string
value object

Returns

bool