AccountingNext/Schaad.Accounting.Common/Datasets/Reports/BalanceDataset.cs
Claudio Schaad e7ff097397 PR O: convert BalanceDataset and BalanceSheetDataset to records
Both were constructor-initialised value carriers with read-only
consumers. Positional record syntax replaces the class + property +
ctor boilerplate; ViewService callers updated to PascalCase named
args to match the record-generated parameter names.

Rest of item 26 descoped: XmlSerializer needs mutable public
setters (value-equality on mutable data is a footgun) and has no
source generator without changing file format. See
IMPROVEMENT_PLAN.md for the full rationale.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-03 17:56:29 +02:00

10 lines
281 B
C#

using System.Collections.Generic;
namespace Schaad.Accounting.Datasets.Reports
{
public record BalanceDataset(
List<AccountDataset> ActivaAccountList,
List<AccountDataset> PassivaAccountList,
decimal TotalActivaCHF,
decimal TotalPassivaCHF);
}