Share via


Delta<TEntityType> Class

 

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

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

Inheritance Hierarchy

System.Object
  System.Dynamic.DynamicObject
    System.Web.OData.Delta
      System.Web.OData.TypedDelta
        System.Web.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>.

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

Initializes a new instance of Delta<TEntityType>.

Properties

Name Description
System_CAPS_pubproperty EntityType

(Overrides TypedDelta.EntityType.)

System_CAPS_pubproperty ExpectedClrType

(Overrides TypedDelta.ExpectedClrType.)

Methods

Name Description
System_CAPS_pubmethod Clear()

(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 known properties that have been modified through this Delta as an IEnumerable<T> of property Names. Does not include the names of the changed dynamic properties. (Overrides Delta.GetChangedPropertyNames().)

System_CAPS_pubmethod GetDynamicMemberNames()

(Inherited from DynamicObject.)

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 known properties that have not been modified through this Delta as an IEnumerable<T> of property Names. Does not include the names of the changed dynamic properties. (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.

Remarks

The semantics of this operation are equivalent to a HTTP PATCH operation, hence the name.

System_CAPS_pubmethod Put(TEntityType)

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

Remarks

The semantics of this operation are equivalent to a HTTP PUT operation, hence the name.

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)

(Overrides Delta.TryGetPropertyType(String, Type).)

System_CAPS_pubmethod TryGetPropertyValue(String, Object)

(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)

(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.OData Namespace

Return to top