Modeling editable lists in DTOs used by services
问题 Say you have the following Contact DTO. Address/PhoneNumber/EmailAddress/WebSiteAddress classes are simple DTOs as well (just data no behavior) public class Contact { public Address[] Addresses { get; set; } public PhoneNumber[] PhoneNumbers { get; set; } public EmailAddress[] EmailAddresses { get; set; } public WebSiteAddress[] WebSiteAddresses { get; set; } } How should I model DTOs to allow implementing the following behavior? The client can submit a request that will add a phone number,