Skip to content

Remove redundant specification on the Data Model #21

@dtrzesniak

Description

@dtrzesniak

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; }

}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions