public InOutCommands.Import ToImport() { var cmd = new InOutCommands.Import(); cmd.DocumentTypeId = this.DocumentTypeId; cmd.Description = this.Description; cmd.OrderId = this.OrderId; cmd.DateOrdered = this.DateOrdered; cmd.MovementTypeId = this.MovementTypeId; cmd.MovementDate = this.MovementDate; cmd.WarehouseId = this.WarehouseId; cmd.POReference = this.POReference; cmd.ShipperId = this.ShipperId; cmd.InOutLines = this.InOutLines == null ? null : new HashSet <ImportingInOutLine>(this.InOutLines); cmd.DocumentNumber = this.DocumentNumber; cmd.Version = this.Version; cmd.CommandId = this.CommandId; cmd.RequesterId = this.RequesterId; return(cmd); }
public virtual void When(InOutCommands.Import c) { Update(c, ar => ar.Import(c.DocumentTypeId, c.Description, c.OrderId, c.DateOrdered, c.MovementTypeId, c.MovementDate, c.WarehouseId, c.POReference, c.ShipperId, c.InOutLines, c.Version, c.CommandId, c.RequesterId)); }