public ParkingOrderEntity(ParkingOrderDto parkingOrderDto)
 {
     this.OrderNumber    = parkingOrderDto.OrderNumber;
     this.ParkingLotName = parkingOrderDto.ParkingLotName;
     this.PlateNumber    = parkingOrderDto.PlateNumber;
     this.CreateTime     = parkingOrderDto.CreateTime;
     this.CloseTime      = parkingOrderDto.CloseTime;
     this.OrderStatus    = parkingOrderDto.OrderStatus;
 }
Esempio n. 2
0
        public override bool Equals(object?obj)
        {
            if (obj == null || !(obj is ParkingOrderDto))
            {
                return(false);
            }

            ParkingOrderDto parkingOrder = (ParkingOrderDto)obj;

            return(parkingOrder.OrderNumber == OrderNumber && parkingOrder.ParkingLotName == ParkingLotName &&
                   parkingOrder.PlateNumber == PlateNumber &&
                   parkingOrder.OrderStatus == OrderStatus &&
                   parkingOrder.CreateTime == CreateTime &&
                   parkingOrder.CloseTime == CloseTime);
        }