protected virtual IUomConversionStateMergePatched Map(IMergePatchUomConversion c) { var stateEventId = new UomConversionEventId(c.UomConversionId, c.Version); IUomConversionStateMergePatched e = NewUomConversionStateMergePatched(stateEventId); e.ConversionFactor = c.ConversionFactor; e.CustomMethodId = c.CustomMethodId; e.DecimalScale = c.DecimalScale; e.RoundingMode = c.RoundingMode; e.Active = c.Active; e.IsPropertyConversionFactorRemoved = c.IsPropertyConversionFactorRemoved; e.IsPropertyCustomMethodIdRemoved = c.IsPropertyCustomMethodIdRemoved; e.IsPropertyDecimalScaleRemoved = c.IsPropertyDecimalScaleRemoved; e.IsPropertyRoundingModeRemoved = c.IsPropertyRoundingModeRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
void IUomConversionApplicationService.When(IMergePatchUomConversion c) { this.When((MergePatchUomConversionDto)c); }
public virtual void MergePatch(IMergePatchUomConversion c) { IUomConversionStateMergePatched e = Map(c); Apply(e); }
public virtual void When(IMergePatchUomConversion c) { Update(c, ar => ar.MergePatch(c)); }