public ShipmentCommands.Import ToImport() { var cmd = new ShipmentCommands.Import(); cmd.ShipmentTypeId = this.ShipmentTypeId; cmd.PrimaryOrderId = this.PrimaryOrderId; cmd.PrimaryReturnId = this.PrimaryReturnId; cmd.BolNumber = this.BolNumber; cmd.VehicleId = this.VehicleId; cmd.SealNumber = this.SealNumber; cmd.ExternalOrderNumber = this.ExternalOrderNumber; cmd.Carrier = this.Carrier; cmd.DateShipped = this.DateShipped; cmd.EstimatedReadyDate = this.EstimatedReadyDate; cmd.EstimatedShipDate = this.EstimatedShipDate; cmd.EstimatedArrivalDate = this.EstimatedArrivalDate; cmd.LatestCancelDate = this.LatestCancelDate; cmd.EstimatedShipCost = this.EstimatedShipCost; cmd.CurrencyUomId = this.CurrencyUomId; cmd.HandlingInstructions = this.HandlingInstructions; cmd.OriginFacilityId = this.OriginFacilityId; cmd.DestinationFacilityId = this.DestinationFacilityId; cmd.PartyIdTo = this.PartyIdTo; cmd.PartyIdFrom = this.PartyIdFrom; cmd.AdditionalShippingCharge = this.AdditionalShippingCharge; cmd.AddtlShippingChargeDesc = this.AddtlShippingChargeDesc; cmd.ShipmentItems = this.ShipmentItems == null ? null : new HashSet <ImportingShipmentItem>(this.ShipmentItems); cmd.ShipmentId = this.ShipmentId; cmd.Version = this.Version; cmd.CommandId = this.CommandId; cmd.RequesterId = this.RequesterId; return(cmd); }
public virtual void When(ShipmentCommands.Import c) { Update(c, ar => ar.Import(c.ShipmentTypeId, c.PrimaryOrderId, c.PrimaryReturnId, c.BolNumber, c.VehicleId, c.SealNumber, c.ExternalOrderNumber, c.Carrier, c.DateShipped, c.EstimatedReadyDate, c.EstimatedShipDate, c.EstimatedArrivalDate, c.LatestCancelDate, c.EstimatedShipCost, c.CurrencyUomId, c.HandlingInstructions, c.OriginFacilityId, c.DestinationFacilityId, c.PartyIdTo, c.PartyIdFrom, c.AdditionalShippingCharge, c.AddtlShippingChargeDesc, c.ShipmentItems, c.Version, c.CommandId, c.RequesterId)); }