NotableDateCacheOccurrenceRow Class
Definition
- Namespace
- Bodu.Globalization.Calendar.Caching
- Assembly
- Bodu.Globalization.Calendar.Caching.dll
- Package
- Bodu.Globalization.Calendar.Caching 1.0.0
The persisted, flattened form of a single NotableDate occurrence, carrying its associating year and resource version alongside every field needed to reconstruct the record.
public sealed class NotableDateCacheOccurrenceRow
- Inheritance
-
NotableDateCacheOccurrenceRow
- Inherited Members
- Extension Methods
Remarks
The rule identity is flattened to its three string components and the category to its enum name, so the row is a flat table of scalars that both the TOML and JSON serializers round-trip natively. Nullable fields are omitted when unset and deserialize back to null.
Constructors
NotableDateCacheOccurrenceRow()
public NotableDateCacheOccurrenceRow()
Properties
ActualDate
Gets or sets the originally calculated occurrence date.
public DateOnly? ActualDate { get; set; }
Property Value
AdjustmentPolicyId
Gets or sets the identifier of the adjustment policy that produced the observed date.
public string? AdjustmentPolicyId { get; set; }
Property Value
AdjustmentReason
Gets or sets the reason recorded by the adjustment policy.
public string? AdjustmentReason { get; set; }
Property Value
Category
Gets or sets the effective category name of the rule.
public string? Category { get; set; }
Property Value
- string
The NotableDateCategory name, or null in a malformed file.
Date
Gets or sets the emitted occurrence date.
public DateOnly Date { get; set; }
Property Value
- DateOnly
The emitted (observed) date.
DisplayName
Gets or sets the display name of the notable-date concept.
public string? DisplayName { get; set; }
Property Value
- string
The display name.
DurationDays
Gets or sets the number of days the occurrence spans, inclusive of the first day.
public int DurationDays { get; set; }
Property Value
- int
The duration in days.
IsNonWorkingDay
Gets or sets a value indicating whether the occurrence is a non-working day.
public bool IsNonWorkingDay { get; set; }
Property Value
IsObserved
Gets or sets a value indicating whether the emitted date differs from the calculated date.
public bool IsObserved { get; set; }
Property Value
NotableDateId
Gets or sets the notable-date identifier component of the rule identity.
public string? NotableDateId { get; set; }
Property Value
- string
The notable-date identifier.
Priority
Gets or sets the selection priority of the rule.
public int Priority { get; set; }
Property Value
- int
The priority.
ResourceId
Gets or sets the resource identifier component of the rule identity.
public string? ResourceId { get; set; }
Property Value
- string
The resource identifier.
RuleId
Gets or sets the rule identifier component of the rule identity.
public string? RuleId { get; set; }
Property Value
- string
The rule identifier.
Tags
Gets or sets the tags declared by the rule.
public List<string> Tags { get; set; }
Property Value
TerritoryCode
Gets or sets the territory the occurrence was resolved for.
public string? TerritoryCode { get; set; }
Property Value
- string
The territory code.
Version
Gets or sets the resource version that associates the occurrence with its cached year entry.
public string? Version { get; set; }
Property Value
Year
Gets or sets the civil year that associates the occurrence with its cached year entry.
public int Year { get; set; }
Property Value
- int
The civil year.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |