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 | |
---|---|---|
Delta<TEntityType>() | Initializes a new instance of Delta<TEntityType>. |
|
Delta<TEntityType>(Type) | Initializes a new instance of Delta<TEntityType>. |
|
Delta<TEntityType>(Type, IEnumerable<String>) | Initializes a new instance of Delta<TEntityType>. |
|
Delta<TEntityType>(Type, IEnumerable<String>, PropertyInfo) | Initializes a new instance of Delta<TEntityType>. |
Properties
Name | Description | |
---|---|---|
EntityType | (Overrides TypedDelta.EntityType.) |
|
ExpectedClrType | (Overrides TypedDelta.ExpectedClrType.) |
Methods
Name | Description | |
---|---|---|
Clear() | (Overrides Delta.Clear().) |
|
CopyChangedValues(TEntityType) | Copies the changed property values from the underlying entity (accessible via GetEntity) to the original entity. |
|
CopyUnchangedValues(TEntityType) | Copies the unchanged property values from the underlying entity (accessible via GetEntity) to the original entity. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
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().) |
|
GetDynamicMemberNames() | (Inherited from DynamicObject.) |
|
GetEntity() | Returns the EntityType instance that holds all the changes (and original values) being tracked by this Delta. |
|
GetHashCode() | (Inherited from Object.) |
|
GetMetaObject(Expression) | (Inherited from DynamicObject.) |
|
GetType() | (Inherited from Object.) |
|
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().) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Patch(TEntityType) | Overwrites the original entity with the changes tracked by this Delta. RemarksThe semantics of this operation are equivalent to a HTTP PATCH operation, hence the name. |
|
Put(TEntityType) | Overwrites the original entity with the values stored in this Delta. RemarksThe semantics of this operation are equivalent to a HTTP PUT operation, hence the name. |
|
ToString() | (Inherited from Object.) |
|
TryBinaryOperation(BinaryOperationBinder, Object, Object) | (Inherited from DynamicObject.) |
|
TryConvert(ConvertBinder, Object) | (Inherited from DynamicObject.) |
|
TryCreateInstance(CreateInstanceBinder, Object[], Object) | (Inherited from DynamicObject.) |
|
TryDeleteIndex(DeleteIndexBinder, Object[]) | (Inherited from DynamicObject.) |
|
TryDeleteMember(DeleteMemberBinder) | (Inherited from DynamicObject.) |
|
TryGetIndex(GetIndexBinder, Object[], Object) | (Inherited from DynamicObject.) |
|
TryGetMember(GetMemberBinder, Object) | Overrides the DynamicObject TryGetMember method, so that only the properties of Entity can be got. (Inherited from Delta.) |
|
TryGetPropertyType(String, Type) | (Overrides Delta.TryGetPropertyType(String, Type).) |
|
TryGetPropertyValue(String, Object) | (Overrides Delta.TryGetPropertyValue(String, Object).) |
|
TryInvoke(InvokeBinder, Object[], Object) | (Inherited from DynamicObject.) |
|
TryInvokeMember(InvokeMemberBinder, Object[], Object) | (Inherited from DynamicObject.) |
|
TrySetIndex(SetIndexBinder, Object[], Object) | (Inherited from DynamicObject.) |
|
TrySetMember(SetMemberBinder, Object) | Overrides the DynamicObject TrySetMember method, so that only the properties of Entity can be set. (Inherited from Delta.) |
|
TrySetPropertyValue(String, Object) | (Overrides Delta.TrySetPropertyValue(String, Object).) |
|
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
Return to top