RunicCollectionChange record

Namespace Runic.Application.Testing · Runic.Application.Testing 0.7.0-preview.5

public sealed record RunicCollectionChange : IEquatable<RunicCollectionChange>

Inherits or implements IEquatable.

One keyed collection edit of a delta frame.

Parameters

Field

The collection's wire name.

Kind

add, remove, replace or move.

Index

Where the rows are added, removed, replaced or moved to.

OldIndex

Where moved or replaced rows were.

Keys

The keys of the added rows, or of the rows before the edit.

Items

The added or replacement rows.

Constructors

RunicCollectionChange

public RunicCollectionChange(string Field, string Kind, int Index, int OldIndex, IReadOnlyList<string> Keys, IReadOnlyList<JsonElement> Items)

One keyed collection edit of a delta frame.

Parameters

Field

The collection's wire name.

Kind

add, remove, replace or move.

Index

Where the rows are added, removed, replaced or moved to.

OldIndex

Where moved or replaced rows were.

Keys

The keys of the added rows, or of the rows before the edit.

Items

The added or replacement rows.

Properties

Field

public string Field { get; init; }

The collection's wire name.

Index

public int Index { get; init; }

Where the rows are added, removed, replaced or moved to.

Items

public IReadOnlyList<JsonElement> Items { get; init; }

The added or replacement rows.

Keys

public IReadOnlyList<string> Keys { get; init; }

The keys of the added rows, or of the rows before the edit.

Kind

public string Kind { get; init; }

add, remove, replace or move.

OldIndex

public int OldIndex { get; init; }

Where moved or replaced rows were.