Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 void IUomConversionApplicationService.When(IMergePatchUomConversion c)
 {
     this.When((MergePatchUomConversionDto)c);
 }
Esempio n. 3
0
        public virtual void MergePatch(IMergePatchUomConversion c)
        {
            IUomConversionStateMergePatched e = Map(c);

            Apply(e);
        }
 public virtual void When(IMergePatchUomConversion c)
 {
     Update(c, ar => ar.MergePatch(c));
 }