Share via


Delta<TEntityType> Class

 

A class the tracks changes (i.e. the delta) for a particular TEntityType.

Namespace:   System.Web.Http.OData
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Inheritance Hierarchy

System.Object
  System.Dynamic.DynamicObject
    System.Web.Http.OData.Delta
      System.Web.Http.OData.TypedDelta
        System.Web.Http.OData.Delta<TEntityType>

Syntax

public class Delta<TEntityType> : TypedDelta, IDelta
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class
public ref class Delta : TypedDelta, IDelta
type Delta<'TEntityType when 'TEntityType : not struct> = 
    class
        inherit TypedDelta
        interface IDelta
    end
Public Class Delta(Of TEntityType As Class)
    Inherits TypedDelta
    Implements IDelta

Type Parameters

  • TEntityType
    TEntityType is the base type of entity this delta tracks changes for.

Constructors

Name Description
System_CAPS_pubmethod Delta<TEntityType>()

Initializes a new instance of Delta<TEntityType>.

System_CAPS_pubmethod Delta<TEntityType>(Type)

Initializes a new instance of Delta<TEntityType>.

System_CAPS_pubmethod Delta<TEntityType>(Type, IEnumerable<String>)

Initializes a new instance of Delta<TEntityType>.

Properties

Name Description
System_CAPS_pubproperty EntityType

Gets the actual type of the entity for which the changes are tracked.(Overrides TypedDelta.EntityType.)

System_CAPS_pubproperty ExpectedClrType

(Overrides TypedDelta.ExpectedClrType.)

Methods

Name Description
System_CAPS_pubmethod Clear()

Clears the Delta and resets the underlying Entity.(Overrides Delta.Clear().)

System_CAPS_pubmethod CopyChangedValues(TEntityType)

Copies the changed property values from the underlying entity (accessible via GetEntity to the original entity.

System_CAPS_pubmethod CopyUnchangedValues(TEntityType)

Copies the unchanged property values from the underlying entity (accessible via GetEntity ) to the original entity.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetChangedPropertyNames()

Returns the Properties that have been modified through this Delta as an enumeration of property names.(Overrides Delta.GetChangedPropertyNames().)

System_CAPS_pubmethod GetDynamicMemberNames()

(Overrides DynamicObject.GetDynamicMemberNames().)

System_CAPS_pubmethod GetEntity()

Returns the EntityType instance that holds all the changes (and original values) being tracked by this Delta.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetMetaObject(Expression)

(Inherited from DynamicObject.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetUnchangedPropertyNames()

Returns the properties that have not been modified through this Delta as an enumeration of property names.(Overrides Delta.GetUnchangedPropertyNames().)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Patch(TEntityType)

Overwrites the original entity with the changes tracked by this Delta.

System_CAPS_pubmethod Put(TEntityType)

Overwrites the original entity with the values stored in this Delta.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryBinaryOperation(BinaryOperationBinder, Object, Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryConvert(ConvertBinder, Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryCreateInstance(CreateInstanceBinder, Object[], Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryDeleteIndex(DeleteIndexBinder, Object[])

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryDeleteMember(DeleteMemberBinder)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryGetIndex(GetIndexBinder, Object[], Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryGetMember(GetMemberBinder, Object)

Overrides the DynamicObject TryGetMember method, so that only the properties of Entity can be got.(Inherited from Delta.)

System_CAPS_pubmethod TryGetPropertyType(String, Type)

Attempts to get the Type of the property called name from the underlying entity.(Overrides Delta.TryGetPropertyType(String, Type).)

System_CAPS_pubmethod TryGetPropertyValue(String, Object)

Attempts to get the value of the property called name from the underlying entity.(Overrides Delta.TryGetPropertyValue(String, Object).)

System_CAPS_pubmethod TryInvoke(InvokeBinder, Object[], Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TryInvokeMember(InvokeMemberBinder, Object[], Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TrySetIndex(SetIndexBinder, Object[], Object)

(Inherited from DynamicObject.)

System_CAPS_pubmethod TrySetMember(SetMemberBinder, Object)

Overrides the DynamicObject TrySetMember method, so that only the properties of Entity can be set.(Inherited from Delta.)

System_CAPS_pubmethod TrySetPropertyValue(String, Object)

Attempts to set the property called name to the value specified.(Overrides Delta.TrySetPropertyValue(String, Object).)

System_CAPS_pubmethod TryUnaryOperation(UnaryOperationBinder, Object)

(Inherited from DynamicObject.)

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

System.Web.Http.OData Namespace

Return to top