See that we use defaults as much as possible.
Example, we don't need to define a Display order if the default is the one we want
public record AmountType : KeyedOrderedDimensionWithExternalId, IHierarchicalDimension
{
[Display(Order = 10)] --> Not needed, over-specified
[Dimension(typeof(AmountType))]
public string Parent { get; init; }
[Display(Order = 20)]
[Dimension(typeof(PeriodType))]
public PeriodType PeriodType { get; init; }
}
See that we use defaults as much as possible.
Example, we don't need to define a Display order if the default is the one we want
public record AmountType : KeyedOrderedDimensionWithExternalId, IHierarchicalDimension
{
[Display(Order = 10)] --> Not needed, over-specified
[Dimension(typeof(AmountType))]
public string Parent { get; init; }
}