Share via


Delta<TEntityType> Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class Delta(Of TEntityType As Class) _
    Inherits TypedDelta _
    Implements IDelta
'Usage
Dim instance As Delta(Of TEntityType)
public class Delta<TEntityType> : TypedDelta, 
    IDelta 
where TEntityType : class
generic<typename TEntityType>
where TEntityType : ref class 
public ref class Delta : public TypedDelta, 
    IDelta
type Delta<'TEntityType when 'TEntityType : not struct> =  
    class 
        inherit TypedDelta 
        interface IDelta 
    end
JScript does not support generic types and methods.

Type Parameters

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

The Delta<TEntityType> type exposes the following members.

Constructors

  Name Description
Public method Delta<TEntityType>() Initializes a new instance of Delta<TEntityType>.
Public method Delta<TEntityType>(Type) Initializes a new instance of Delta<TEntityType>.
Public method Delta<TEntityType>(Type, IEnumerable<String>) Initializes a new instance of Delta<TEntityType>.

Top

Properties

  Name Description
Public property EntityType Gets the actual type of the entity for which the changes are tracked. (Overrides TypedDelta.EntityType.)
Public property ExpectedClrType (Overrides TypedDelta.ExpectedClrType.)

Top

Methods

  Name Description
Public method Clear Clears the Delta and resets the underlying Entity. (Overrides Delta.Clear().)
Public method CopyChangedValues Copies the changed property values from the underlying entity (accessible via GetEntity() to the original entity.
Public method CopyUnchangedValues Copies the unchanged property values from the underlying entity (accessible via GetEntity() ) to the original entity.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetChangedPropertyNames Returns the Properties that have been modified through this Delta as an enumeration of property names. (Overrides Delta.GetChangedPropertyNames().)
Public method GetDynamicMemberNames (Overrides DynamicObject.GetDynamicMemberNames().)
Public method GetEntity Returns the EntityType instance that holds all the changes (and original values) being tracked by this Delta.
Public method GetHashCode (Inherited from Object.)
Public method GetMetaObject (Inherited from DynamicObject.)
Public method GetType (Inherited from Object.)
Public method GetUnchangedPropertyNames Returns the properties that have not been modified through this Delta as an enumeration of property names. (Overrides Delta.GetUnchangedPropertyNames().)
Protected method MemberwiseClone (Inherited from Object.)
Public method Patch Overwrites the original entity with the changes tracked by this Delta.
Public method Put Overwrites the original entity with the values stored in this Delta.
Public method ToString (Inherited from Object.)
Public method TryBinaryOperation (Inherited from DynamicObject.)
Public method TryConvert (Inherited from DynamicObject.)
Public method TryCreateInstance (Inherited from DynamicObject.)
Public method TryDeleteIndex (Inherited from DynamicObject.)
Public method TryDeleteMember (Inherited from DynamicObject.)
Public method TryGetIndex (Inherited from DynamicObject.)
Public method TryGetMember Overrides the DynamicObject TryGetMember method, so that only the properties of Entity can be got. (Inherited from Delta.)
Public method TryGetPropertyType Attempts to get the Type of the property called name from the underlying entity. (Overrides Delta.TryGetPropertyType(String, Type%).)
Public method TryGetPropertyValue Attempts to get the value of the property called name from the underlying entity. (Overrides Delta.TryGetPropertyValue(String, Object%).)
Public method TryInvoke (Inherited from DynamicObject.)
Public method TryInvokeMember (Inherited from DynamicObject.)
Public method TrySetIndex (Inherited from DynamicObject.)
Public method TrySetMember Overrides the DynamicObject TrySetMember method, so that only the properties of Entity can be set. (Inherited from Delta.)
Public method TrySetPropertyValue Attempts to set the property called name to the value specified. (Overrides Delta.TrySetPropertyValue(String, Object).)
Public method TryUnaryOperation (Inherited from DynamicObject.)

Top

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

Reference

System.Web.Http.OData Namespace