Table of Contents

Interface IDelta

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

IDelta allows and tracks changes to an object.

public interface IDelta

Methods

Clear()

Clears the IDelta.

void Clear()

GetChangedPropertyNames()

Returns the Properties that have been modified through this IDelta as an enumerable of Property Names

IEnumerable<string> GetChangedPropertyNames()

Returns

IEnumerable<string>

GetUnchangedPropertyNames()

Returns the Properties that have not been modified through this IDelta as an enumerable of Property Names

IEnumerable<string> GetUnchangedPropertyNames()

Returns

IEnumerable<string>

TryGetPropertyType(string, out Type)

Attempts to get the Type of the Property called name from the underlying Entity.

bool TryGetPropertyType(string name, out Type type)

Parameters

name string

The name of the Property

type Type

The type of the Property

Returns

bool

Returns true if the Property was found and false if not.

TryGetPropertyValue(string, out object)

Attempts to get the value of the Property called name from the underlying Entity.

bool TryGetPropertyValue(string name, out object value)

Parameters

name string

The name of the Property

value object

The value of the Property

Returns

bool

Returns true if the Property was found and false if not.

TrySetPropertyValue(string, object)

Attempts to set the Property called name to the value specified.

bool TrySetPropertyValue(string name, object value)

Parameters

name string

The name of the Property

value object

The new value of the Property

Returns

bool

Returns true if successful and false if not.