Open
Description
Motivation
Solves scenario 3 of issue #90 scenarios
Linked items element limited to multiple types with at least 1 at most or exactly 1 item.
Proposed solution
Article.Generated.cs will contain
public IEnumerable<IContentItem> Attachement { get; set; }
Article.Typed.Generated.cs will contain
public Image AttachementImageSingle => Attachement.OfType<Image>().FirstOrDefault();
public Other AttachementOtherSingle => Attachement.OfType<Other>().FirstOrDefault();
Additional context
As a developer, you still need to check which property contains a value. Other properties will contain a null.
Take in mind responses and notes in the comment.
Metadata
Assignees
Labels
No labels
Activity