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