Код: Выделить всё
// These are my source objects
public class EditDeliberationCommand : IRequest
{
public Guid Id { get; set; }
public GlobalInformationDto GlobalInformation { get; set; }
}
public class GlobalInformationDto
{
public AudienceType? AudienceType { get; set; }
}
// These are my destination objects
public class Deliberation : AgendaItem
{
}
public abstract class AgendaItem : Entity
{
public GlobalInformation GlobalInformation { get; set; }
}
public class GlobalInformation : ValueObject
{
public AudienceType? AudienceType { get; set; }
Public AudienceType? ExpectedAudienceType { get; set; }
}
Пример здесь очень упрощен, у меня есть много других простых свойств, которые копируются из EditdeliberationCommand на размышление просто хорошо.>
Подробнее здесь: https://stackoverflow.com/questions/794 ... sub-object