protected OrderRoleMvoStateDeleted NewOrderRoleMvoStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new OrderRoleMvoEventId(_state.OrderRoleId, version); var e = NewOrderRoleMvoStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IOrderRoleMvoStateDeleted Map(IDeleteOrderRoleMvo c) { var stateEventId = new OrderRoleMvoEventId(c.OrderRoleId, c.OrderVersion); IOrderRoleMvoStateDeleted e = NewOrderRoleMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IOrderRoleMvoStateCreated Map(ICreateOrderRoleMvo c) { var stateEventId = new OrderRoleMvoEventId(c.OrderRoleId, c.OrderVersion); IOrderRoleMvoStateCreated e = NewOrderRoleMvoStateCreated(stateEventId); e.Version = c.Version; e.Active = c.Active; e.OrderOrderTypeId = c.OrderOrderTypeId; e.OrderOrderName = c.OrderOrderName; e.OrderExternalId = c.OrderExternalId; e.OrderSalesChannelEnumId = c.OrderSalesChannelEnumId; e.OrderOrderDate = c.OrderOrderDate; e.OrderPriority = c.OrderPriority; e.OrderEntryDate = c.OrderEntryDate; e.OrderPickSheetPrintedDate = c.OrderPickSheetPrintedDate; e.OrderStatusId = c.OrderStatusId; e.OrderCurrencyUom = c.OrderCurrencyUom; e.OrderSyncStatusId = c.OrderSyncStatusId; e.OrderBillingAccountId = c.OrderBillingAccountId; e.OrderOriginFacilityId = c.OrderOriginFacilityId; e.OrderWebSiteId = c.OrderWebSiteId; e.OrderProductStoreId = c.OrderProductStoreId; e.OrderTerminalId = c.OrderTerminalId; e.OrderTransactionId = c.OrderTransactionId; e.OrderAutoOrderShoppingListId = c.OrderAutoOrderShoppingListId; e.OrderNeedsInventoryIssuance = c.OrderNeedsInventoryIssuance; e.OrderIsRushOrder = c.OrderIsRushOrder; e.OrderInternalCode = c.OrderInternalCode; e.OrderRemainingSubTotal = c.OrderRemainingSubTotal; e.OrderGrandTotal = c.OrderGrandTotal; e.OrderInvoicePerShipment = c.OrderInvoicePerShipment; e.OrderCreatedBy = c.OrderCreatedBy; e.OrderCreatedAt = c.OrderCreatedAt; e.OrderUpdatedBy = c.OrderUpdatedBy; e.OrderUpdatedAt = c.OrderUpdatedAt; e.OrderActive = c.OrderActive; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var orderVersion = c.OrderVersion; return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } OrderRoleMvoEventId other = obj as OrderRoleMvoEventId; if (other == null) { return(false); } return(true && Object.Equals(this.OrderRoleId, other.OrderRoleId) && Object.Equals(this.OrderVersion, other.OrderVersion) ); }
protected OrderRoleMvoStateEventDtoBase(OrderRoleMvoEventId stateEventId) { this.OrderRoleMvoEventId = stateEventId; }
public OrderRoleMvoStateDeleted(OrderRoleMvoEventId stateEventId) : base(stateEventId) { }
public OrderRoleMvoStateMergePatched(OrderRoleMvoEventId stateEventId) : base(stateEventId) { }
protected OrderRoleMvoStateEventBase(OrderRoleMvoEventId stateEventId) : base(stateEventId) { }
private OrderRoleMvoStateDeleted NewOrderRoleMvoStateDeleted(OrderRoleMvoEventId stateEventId) { return(new OrderRoleMvoStateDeleted(stateEventId)); }
private OrderRoleMvoStateMergePatched NewOrderRoleMvoStateMergePatched(OrderRoleMvoEventId stateEventId) { return(new OrderRoleMvoStateMergePatched(stateEventId)); }