Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Submit Inheritance: Microsoft.Restier.Core.Submit.DataModificationItem

Syntax

Summary

Represents a data modification item in a change set.

Type Parameters

  • T - The resource type.

Constructors

.ctor

Initializes a new instance of the DataModificationItem`1 class.

Syntax

Parameters

.ctor Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Initializes a new instance of the DataModificationItem class.

Syntax

Parameters

.ctor Inherited

Inherited from Microsoft.Restier.Core.Submit.ChangeSetItem

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

ActualResourceType Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the name of the actual resource type in question. In type inheritance case, this is different from expectedResourceType

Syntax

Property Value

Type: System.Type

ChangeSetItemProcessingStage Inherited

Inherited from Microsoft.Restier.Core.Submit.ChangeSetItem
Gets or sets the dynamic state of this change set item.

Syntax

Property Value

Type: Microsoft.Restier.Core.Submit.ChangeSetItemProcessingStage

EntitySetOperation Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets or sets the action to be taken.

Syntax

Property Value

Type: Microsoft.Restier.Core.RestierEntitySetOperation

ExpectedResourceType Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the name of the expected resource type in question.

Syntax

Property Value

Type: System.Type

IsFullReplaceUpdateRequest Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets or sets a value indicating whether the resource should be fully replaced by the modification.

Syntax

Property Value

Type: bool

Remarks

If true, all properties will be updated, even if the property isn’t in LocalValues. If false, only properties identified in LocalValues will be updated on the resource.

LocalValues Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the local values for properties that have changed.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyDictionary<string, object>

Remarks

For entities pending deletion, this property is null.

OriginalValues Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the original values for properties that have changed.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyDictionary<string, object>

Remarks

For new entities, this property is null.

Resource

Gets or sets the resource object in question.

Syntax

Property Value

Type: T

Remarks

Initially this will be null, however after the change set has been prepared it will represent the pending resource.

Resource Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets or sets the resource object in question.

Syntax

Property Value

Type: object

Remarks

Initially this will be null, however after the change set has been prepared it will represent the pending resource.

ResourceKey Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the key of the resource being modified.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyDictionary<string, object>

ResourceSetName Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the name of the resource set in question.

Syntax

Property Value

Type: string

ServerValues Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Gets the current server values for properties that have changed.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyDictionary<string, object>

Remarks

For new entities, this property is null. For updated entities, it is null until the change set is prepared.

Type Inherited

Inherited from Microsoft.Restier.Core.Submit.ChangeSetItem
Gets the type of this change set item.

Syntax

Property Value

Type: Microsoft.Restier.Core.Submit.ChangeSetItemType

Methods

ApplyTo Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Applies the current DataModificationItem’s KeyValues and OriginalValues to the specified query and returns the new query.

Syntax

Parameters

Returns

Type: System.Linq.IQueryable The new IQueryable with the property values applied to it in a Where condition.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

HasChanged Inherited

Inherited from Microsoft.Restier.Core.Submit.ChangeSetItem
Indicates whether this change set item is in a changed state.

Syntax

Returns

Type: bool Whether this change set item is in a changed state.

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

ValidateEtag Inherited

Inherited from Microsoft.Restier.Core.Submit.DataModificationItem
Validate the e-tag via applies the current DataModificationItem’s OriginalValues to the specified query and returns result.

Syntax

Parameters

Returns

Type: object The object is e-tag checked passed.