Table of Contents

Struct FactTableColumn

Namespace
MailFathom.Application.Discovery.Presentation.Blocks
Assembly
MailFathom.Application.dll

The closed catalogue of columns a fact table may compare values across.

[JsonConverter(typeof(FactTableColumnJsonConverter))]
public readonly record struct FactTableColumn : IEquatable<FactTableColumn>
Implements
Inherited Members

Remarks

A column names what a cell holds, and nothing else. It carries no heading, because a heading is words in somebody's language and the client is localized: a producer that shipped the word "Amount" would have shipped an English screen to a Polish reader. The client draws the heading for the column it was handed, which is only possible because the set is closed.

It is a closed enumeration rather than a C# enum because a member carries its identity on the wire and the kind of value its cells hold. The kind is what lets a client align a column, sort it, or refuse to — and putting it in a lookup table beside the set would be a second place to keep in step. Being a struct, default is reachable and names no column; it reports itself through IsSpecified and is refused by the converter and by the table.

Properties

All

Gets every column the catalogue holds.

Amount

Gets the column holding a money amount, written as the correspondence wrote it, currency included.

Date

Gets the column holding the date the row is about.

Document

Gets the column naming the document the row was read from.

Identity

Gets the identity the wire uses, which survives a rename of the C# member.

IsSpecified

Gets whether this value names a catalogued column rather than the unusable struct default.

Party

Gets the column naming the person or organization the row concerns.

Quantity

Gets the column holding a counted quantity.

Reference

Gets the column holding whatever reference the correspondence itself uses — an order number, a case number, a ticket.

Status

Gets the column holding where something stands.

Subject

Gets the column naming what the row concerns — the matter, the document, or the item compared.

Term

Gets the column holding a term of an agreement — a period, a notice, a condition.

ValueKind

Gets what kind of value the column's cells hold.

Version

Gets the column holding which revision of something the row is about.

Methods

ToString()

Returns the fully qualified type name of this instance.

TryParse(string?, out FactTableColumn)

Parses an identity read off the wire.