Struct BowireGitWorkspaceMigrationKindReport

Namespace
Kuestenlogik.Bowire.Workspace.Git
Assembly
Kuestenlogik.Bowire.Workspace.Git.dll

Per-entity-kind migration outcome. Counts the entities written to the per-entity layout, plus a flag indicating whether the migration actually fired (false = nothing-to-do, kind absent on disk or already migrated).

public readonly struct BowireGitWorkspaceMigrationKindReport : IEquatable<BowireGitWorkspaceMigrationKindReport>
Implements
Inherited Members

Constructors

BowireGitWorkspaceMigrationKindReport(string, int, bool)

Per-entity-kind migration outcome. Counts the entities written to the per-entity layout, plus a flag indicating whether the migration actually fired (false = nothing-to-do, kind absent on disk or already migrated).

public BowireGitWorkspaceMigrationKindReport(string EntityKind, int Migrated, bool LegacyFound)

Parameters

EntityKind string
Migrated int
LegacyFound bool

Properties

DidWork

Convenience flag — the migration moved data on this run. Used by the CLI to surface a "nothing to do" diagnostic when every kind reports false.

public bool DidWork { get; }

Property Value

bool

EntityKind

public string EntityKind { get; init; }

Property Value

string

LegacyFound

public bool LegacyFound { get; init; }

Property Value

bool

Migrated

public int Migrated { get; init; }

Property Value

int

Methods

Deconstruct(out string, out int, out bool)

public void Deconstruct(out string EntityKind, out int Migrated, out bool LegacyFound)

Parameters

EntityKind string
Migrated int
LegacyFound bool

Equals(BowireGitWorkspaceMigrationKindReport)

public bool Equals(BowireGitWorkspaceMigrationKindReport other)

Parameters

other BowireGitWorkspaceMigrationKindReport

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireGitWorkspaceMigrationKindReport, BowireGitWorkspaceMigrationKindReport)

public static bool operator ==(BowireGitWorkspaceMigrationKindReport left, BowireGitWorkspaceMigrationKindReport right)

Parameters

left BowireGitWorkspaceMigrationKindReport
right BowireGitWorkspaceMigrationKindReport

Returns

bool

operator !=(BowireGitWorkspaceMigrationKindReport, BowireGitWorkspaceMigrationKindReport)

public static bool operator !=(BowireGitWorkspaceMigrationKindReport left, BowireGitWorkspaceMigrationKindReport right)

Parameters

left BowireGitWorkspaceMigrationKindReport
right BowireGitWorkspaceMigrationKindReport

Returns

bool