public virtual AttributeSetInstanceExtensionFieldGroupStateMergePatchedDto ToAttributeSetInstanceExtensionFieldGroupStateMergePatchedDto(IAttributeSetInstanceExtensionFieldGroupStateMergePatched e)
        {
            var dto = new AttributeSetInstanceExtensionFieldGroupStateMergePatchedDto();

            dto.StateEventId = new AttributeSetInstanceExtensionFieldGroupStateEventIdDtoWrapper(e.StateEventId);
            dto.CreatedAt    = e.CreatedAt;
            dto.CreatedBy    = e.CreatedBy;
            dto.CommandId    = e.CommandId;
            dto.FieldType    = e.FieldType;
            dto.FieldLength  = e.FieldLength;
            dto.FieldCount   = e.FieldCount;
            dto.NameFormat   = e.NameFormat;
            dto.Description  = e.Description;
            dto.Active       = e.Active;
            dto.IsPropertyFieldTypeRemoved   = e.IsPropertyFieldTypeRemoved;
            dto.IsPropertyFieldLengthRemoved = e.IsPropertyFieldLengthRemoved;
            dto.IsPropertyFieldCountRemoved  = e.IsPropertyFieldCountRemoved;
            dto.IsPropertyNameFormatRemoved  = e.IsPropertyNameFormatRemoved;
            dto.IsPropertyDescriptionRemoved = e.IsPropertyDescriptionRemoved;
            dto.IsPropertyActiveRemoved      = e.IsPropertyActiveRemoved;
            var attributeSetInstanceExtensionFieldEvents = new List <AttributeSetInstanceExtensionFieldStateCreatedOrMergePatchedOrRemovedDto>();

            foreach (var ee in e.AttributeSetInstanceExtensionFieldEvents)
            {
                AttributeSetInstanceExtensionFieldStateCreatedOrMergePatchedOrRemovedDto eeDto = AttributeSetInstanceExtensionFieldStateEventDtoConverter.ToAttributeSetInstanceExtensionFieldStateEventDto(ee);
                attributeSetInstanceExtensionFieldEvents.Add(eeDto);
            }
            dto.AttributeSetInstanceExtensionFieldEvents = attributeSetInstanceExtensionFieldEvents.ToArray();


            return(dto);
        }
Exemplo n.º 2
0
        public virtual AttributeSetInstanceExtensionFieldGroupStateMergePatchedDto ToAttributeSetInstanceExtensionFieldGroupStateMergePatchedDto(IAttributeSetInstanceExtensionFieldGroupStateMergePatched e)
        {
            var dto = new AttributeSetInstanceExtensionFieldGroupStateMergePatchedDto();

            dto.AttributeSetInstanceExtensionFieldGroupEventId = e.AttributeSetInstanceExtensionFieldGroupEventId;
            dto.CreatedAt   = e.CreatedAt;
            dto.CreatedBy   = e.CreatedBy;
            dto.CommandId   = e.CommandId;
            dto.FieldType   = e.FieldType;
            dto.FieldLength = e.FieldLength;
            dto.FieldCount  = e.FieldCount;
            dto.NameFormat  = e.NameFormat;
            dto.Description = e.Description;
            dto.Active      = e.Active;
            dto.IsPropertyFieldTypeRemoved   = e.IsPropertyFieldTypeRemoved;
            dto.IsPropertyFieldLengthRemoved = e.IsPropertyFieldLengthRemoved;
            dto.IsPropertyFieldCountRemoved  = e.IsPropertyFieldCountRemoved;
            dto.IsPropertyNameFormatRemoved  = e.IsPropertyNameFormatRemoved;
            dto.IsPropertyDescriptionRemoved = e.IsPropertyDescriptionRemoved;
            dto.IsPropertyActiveRemoved      = e.IsPropertyActiveRemoved;

            return(dto);
        }