Class ChangeSet
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Represents a set of changes describing which items were added, replaced, or removed in an observable query result since the previous update.
public class ChangeSet
- Inheritance
-
ChangeSet
- Inherited Members
- Extension Methods
Remarks
A ChangeSet is optionally attached to a QueryResult when the
client has requested delta-mode transfer (via the observableQueryTransferMode
configuration). In delta mode the frontend applies the change set to its local copy of the
collection instead of replacing the entire dataset, reducing the amount of data transferred
over the wire.
When a ChangeSet is null on a QueryResult, the client must treat the Data field as the full current snapshot (full mode).
Constructors
ChangeSet()
public ChangeSet()
Properties
Added
Gets or sets the items that were added since the previous update.
public IEnumerable<object> Added { get; set; }
Property Value
Removed
Gets or sets the items that were removed since the previous update.
public IEnumerable<object> Removed { get; set; }
Property Value
Replaced
Gets or sets the items that were replaced (same identity, updated content) since the previous update.
public IEnumerable<object> Replaced { get; set; }