protected virtual IAttributeValueMvoStateMergePatched Map(IMergePatchAttributeValueMvo c) { var stateEventId = new AttributeValueMvoStateEventId(c.AttributeValueId, c.AttributeVersion); IAttributeValueMvoStateMergePatched e = NewAttributeValueMvoStateMergePatched(stateEventId); e.Name = c.Name; e.Description = c.Description; e.ReferenceId = c.ReferenceId; e.Version = c.Version; e.Active = c.Active; e.AttributeName = c.AttributeName; e.AttributeOrganizationId = c.AttributeOrganizationId; e.AttributeDescription = c.AttributeDescription; e.AttributeIsMandatory = c.AttributeIsMandatory; e.AttributeIsInstanceAttribute = c.AttributeIsInstanceAttribute; e.AttributeAttributeValueType = c.AttributeAttributeValueType; e.AttributeAttributeValueLength = c.AttributeAttributeValueLength; e.AttributeIsList = c.AttributeIsList; e.AttributeFieldName = c.AttributeFieldName; e.AttributeReferenceId = c.AttributeReferenceId; e.AttributeCreatedBy = c.AttributeCreatedBy; e.AttributeCreatedAt = c.AttributeCreatedAt; e.AttributeUpdatedBy = c.AttributeUpdatedBy; e.AttributeUpdatedAt = c.AttributeUpdatedAt; e.AttributeActive = c.AttributeActive; e.AttributeDeleted = c.AttributeDeleted; e.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyReferenceIdRemoved = c.IsPropertyReferenceIdRemoved; e.IsPropertyVersionRemoved = c.IsPropertyVersionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.IsPropertyAttributeNameRemoved = c.IsPropertyAttributeNameRemoved; e.IsPropertyAttributeOrganizationIdRemoved = c.IsPropertyAttributeOrganizationIdRemoved; e.IsPropertyAttributeDescriptionRemoved = c.IsPropertyAttributeDescriptionRemoved; e.IsPropertyAttributeIsMandatoryRemoved = c.IsPropertyAttributeIsMandatoryRemoved; e.IsPropertyAttributeIsInstanceAttributeRemoved = c.IsPropertyAttributeIsInstanceAttributeRemoved; e.IsPropertyAttributeAttributeValueTypeRemoved = c.IsPropertyAttributeAttributeValueTypeRemoved; e.IsPropertyAttributeAttributeValueLengthRemoved = c.IsPropertyAttributeAttributeValueLengthRemoved; e.IsPropertyAttributeIsListRemoved = c.IsPropertyAttributeIsListRemoved; e.IsPropertyAttributeFieldNameRemoved = c.IsPropertyAttributeFieldNameRemoved; e.IsPropertyAttributeReferenceIdRemoved = c.IsPropertyAttributeReferenceIdRemoved; e.IsPropertyAttributeCreatedByRemoved = c.IsPropertyAttributeCreatedByRemoved; e.IsPropertyAttributeCreatedAtRemoved = c.IsPropertyAttributeCreatedAtRemoved; e.IsPropertyAttributeUpdatedByRemoved = c.IsPropertyAttributeUpdatedByRemoved; e.IsPropertyAttributeUpdatedAtRemoved = c.IsPropertyAttributeUpdatedAtRemoved; e.IsPropertyAttributeActiveRemoved = c.IsPropertyAttributeActiveRemoved; e.IsPropertyAttributeDeletedRemoved = c.IsPropertyAttributeDeletedRemoved; ReflectUtils.CopyPropertyValue("CommandId", c, e); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var attributeVersion = c.AttributeVersion; return(e); }
protected virtual IAttributeValueMvoStateMergePatched Map(IMergePatchAttributeValueMvo c) { var stateEventId = new AttributeValueMvoEventId(c.AttributeValueId, c.AttributeVersion); IAttributeValueMvoStateMergePatched e = NewAttributeValueMvoStateMergePatched(stateEventId); e.AttributeValueName = c.AttributeValueName; e.Description = c.Description; e.ReferenceId = c.ReferenceId; e.Version = c.Version; e.Active = c.Active; e.AttributeAttributeName = c.AttributeAttributeName; e.AttributeOrganizationId = c.AttributeOrganizationId; e.AttributeDescription = c.AttributeDescription; e.AttributeIsMandatory = c.AttributeIsMandatory; e.AttributeAttributeValueType = c.AttributeAttributeValueType; e.AttributeAttributeValueLength = c.AttributeAttributeValueLength; e.AttributeIsList = c.AttributeIsList; e.AttributeFieldName = c.AttributeFieldName; e.AttributeReferenceId = c.AttributeReferenceId; e.AttributeCreatedBy = c.AttributeCreatedBy; e.AttributeCreatedAt = c.AttributeCreatedAt; e.AttributeUpdatedBy = c.AttributeUpdatedBy; e.AttributeUpdatedAt = c.AttributeUpdatedAt; e.AttributeActive = c.AttributeActive; e.AttributeDeleted = c.AttributeDeleted; e.IsPropertyAttributeValueNameRemoved = c.IsPropertyAttributeValueNameRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyReferenceIdRemoved = c.IsPropertyReferenceIdRemoved; e.IsPropertyVersionRemoved = c.IsPropertyVersionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.IsPropertyAttributeAttributeNameRemoved = c.IsPropertyAttributeAttributeNameRemoved; e.IsPropertyAttributeOrganizationIdRemoved = c.IsPropertyAttributeOrganizationIdRemoved; e.IsPropertyAttributeDescriptionRemoved = c.IsPropertyAttributeDescriptionRemoved; e.IsPropertyAttributeIsMandatoryRemoved = c.IsPropertyAttributeIsMandatoryRemoved; e.IsPropertyAttributeAttributeValueTypeRemoved = c.IsPropertyAttributeAttributeValueTypeRemoved; e.IsPropertyAttributeAttributeValueLengthRemoved = c.IsPropertyAttributeAttributeValueLengthRemoved; e.IsPropertyAttributeIsListRemoved = c.IsPropertyAttributeIsListRemoved; e.IsPropertyAttributeFieldNameRemoved = c.IsPropertyAttributeFieldNameRemoved; e.IsPropertyAttributeReferenceIdRemoved = c.IsPropertyAttributeReferenceIdRemoved; e.IsPropertyAttributeCreatedByRemoved = c.IsPropertyAttributeCreatedByRemoved; e.IsPropertyAttributeCreatedAtRemoved = c.IsPropertyAttributeCreatedAtRemoved; e.IsPropertyAttributeUpdatedByRemoved = c.IsPropertyAttributeUpdatedByRemoved; e.IsPropertyAttributeUpdatedAtRemoved = c.IsPropertyAttributeUpdatedAtRemoved; e.IsPropertyAttributeActiveRemoved = c.IsPropertyAttributeActiveRemoved; e.IsPropertyAttributeDeletedRemoved = c.IsPropertyAttributeDeletedRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var attributeVersion = c.AttributeVersion; return(e); }
void IAttributeValueMvoApplicationService.When(IMergePatchAttributeValueMvo c) { this.When((MergePatchAttributeValueMvoDto)c); }
public virtual void MergePatch(IMergePatchAttributeValueMvo c) { IAttributeValueMvoStateMergePatched e = Map(c); Apply(e); }
public virtual void When(IMergePatchAttributeValueMvo c) { Update(c, ar => ar.MergePatch(c)); }