Delta<TStructuralType> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A class the tracks changes (i.e. the Delta) for a particular TStructuralType
.
public class Delta<TStructuralType> : Microsoft.AspNet.OData.TypedDelta where TStructuralType : class
type Delta<'StructuralType (requires 'StructuralType : null)> = class
inherit TypedDelta
interface IDelta
Public Class Delta(Of TStructuralType)
Inherits TypedDelta
Type Parameters
- TStructuralType
TStructuralType is the type of the instance this delta tracks changes for.
- Inheritance
- Implements
Constructors
Delta<TStructuralType>() |
Initializes a new instance of Delta<TStructuralType>. |
Delta<TStructuralType>(Type, IEnumerable<String>, PropertyInfo) |
Initializes a new instance of Delta<TStructuralType>. |
Delta<TStructuralType>(Type, IEnumerable<String>) |
Initializes a new instance of Delta<TStructuralType>. |
Delta<TStructuralType>(Type) |
Initializes a new instance of Delta<TStructuralType>. |
Properties
ExpectedClrType |
Gets the expected type of the entity for which the changes are tracked. |
StructuredType |
Gets the actual type of the structural object for which the changes are tracked. |
Methods
Clear() |
Clears the IDelta. |
CopyChangedValues(TStructuralType) |
Copies the changed property values from the underlying entity (accessible via GetInstance())
to the |
CopyUnchangedValues(TStructuralType) |
Copies the unchanged property values from the underlying entity (accessible via GetInstance())
to the |
GetChangedPropertyNames() |
Returns the known properties that have been modified through this Delta as an IEnumerable<T> of property Names. Includes the structural properties at current level. Does not include the names of the changed dynamic properties. |
GetInstance() |
Returns the instance that holds all the changes (and original values) being tracked by this Delta. |
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. |
Patch(TStructuralType) |
Overwrites the |
Put(TStructuralType) |
Overwrites the |
TryGetMember(GetMemberBinder, Object) |
Overrides the DynamicObject TryGetMember method, so that only the properties of Entity can be got. (Inherited from Delta) |
TryGetPropertyType(String, Type) |
Attempts to get the Type of the Property called |
TryGetPropertyValue(String, Object) |
Attempts to get the value of the Property called |
TrySetMember(SetMemberBinder, Object) |
Overrides the DynamicObject TrySetMember method, so that only the properties of Entity can be set. (Inherited from Delta) |
TrySetPropertyValue(String, Object) |
Attempts to set the Property called |