示例#1
0
        protected virtual IInventoryItemRequirementEntryMvoStateMergePatched Map(IMergePatchInventoryItemRequirementEntryMvo c)
        {
            var stateEventId = new InventoryItemRequirementEntryMvoEventId(c.InventoryItemRequirementEntryId, c.InventoryItemRequirementVersion);
            IInventoryItemRequirementEntryMvoStateMergePatched e = NewInventoryItemRequirementEntryMvoStateMergePatched(stateEventId);

            e.Quantity      = c.Quantity;
            e.SourceEventId = c.SourceEventId;
            e.Version       = c.Version;
            e.InventoryItemRequirementQuantity  = c.InventoryItemRequirementQuantity;
            e.InventoryItemRequirementCreatedBy = c.InventoryItemRequirementCreatedBy;
            e.InventoryItemRequirementCreatedAt = c.InventoryItemRequirementCreatedAt;
            e.InventoryItemRequirementUpdatedBy = c.InventoryItemRequirementUpdatedBy;
            e.InventoryItemRequirementUpdatedAt = c.InventoryItemRequirementUpdatedAt;
            e.IsPropertyQuantityRemoved         = c.IsPropertyQuantityRemoved;
            e.IsPropertySourceEventIdRemoved    = c.IsPropertySourceEventIdRemoved;
            e.IsPropertyVersionRemoved          = c.IsPropertyVersionRemoved;
            e.IsPropertyInventoryItemRequirementQuantityRemoved  = c.IsPropertyInventoryItemRequirementQuantityRemoved;
            e.IsPropertyInventoryItemRequirementCreatedByRemoved = c.IsPropertyInventoryItemRequirementCreatedByRemoved;
            e.IsPropertyInventoryItemRequirementCreatedAtRemoved = c.IsPropertyInventoryItemRequirementCreatedAtRemoved;
            e.IsPropertyInventoryItemRequirementUpdatedByRemoved = c.IsPropertyInventoryItemRequirementUpdatedByRemoved;
            e.IsPropertyInventoryItemRequirementUpdatedAtRemoved = c.IsPropertyInventoryItemRequirementUpdatedAtRemoved;

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            var inventoryItemRequirementVersion = c.InventoryItemRequirementVersion;


            return(e);
        }
示例#2
0
        protected InventoryItemRequirementEntryMvoStateMergePatched NewInventoryItemRequirementEntryMvoStateMergePatched(long version, string commandId, string requesterId)
        {
            var stateEventId = new InventoryItemRequirementEntryMvoEventId(_state.InventoryItemRequirementEntryId, version);
            var e            = NewInventoryItemRequirementEntryMvoStateMergePatched(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
示例#3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InventoryItemRequirementEntryMvoEventId other = obj as InventoryItemRequirementEntryMvoEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.InventoryItemRequirementEntryId, other.InventoryItemRequirementEntryId) &&
                   Object.Equals(this.InventoryItemRequirementVersion, other.InventoryItemRequirementVersion)
                   );
        }
示例#4
0
 private InventoryItemRequirementEntryMvoStateMergePatched NewInventoryItemRequirementEntryMvoStateMergePatched(InventoryItemRequirementEntryMvoEventId stateEventId)
 {
     return(new InventoryItemRequirementEntryMvoStateMergePatched(stateEventId));
 }
 protected InventoryItemRequirementEntryMvoEventBase(InventoryItemRequirementEntryMvoEventId stateEventId)
 {
     this.InventoryItemRequirementEntryMvoEventId = stateEventId;
 }
 public InventoryItemRequirementEntryMvoStateMergePatched(InventoryItemRequirementEntryMvoEventId stateEventId) : base(stateEventId)
 {
 }
 public InventoryItemRequirementEntryMvoStateCreated(InventoryItemRequirementEntryMvoEventId stateEventId) : base(stateEventId)
 {
 }
 protected InventoryItemRequirementEntryMvoStateEventBase(InventoryItemRequirementEntryMvoEventId stateEventId) : base(stateEventId)
 {
 }