Beispiel #1
0
 public BusInfo GetInfo(BUS bus)
 {
     BusInfo ret = new BusInfo();
     ret.BusName = bus.busName;
     ret.BusNumber = bus.busNumber;
     ret.Price = bus.price;
     ret.CarType = bus.carType;
     ret.FORM =  bus.form;
     ret.Distance = (bus.distance.HasValue)? (float)bus.distance.Value : 0;
     ret.Company = bus.company;
     ret.ForwardDirection = bus.forwardDirection;
     ret.BackwardDirection = bus.backwardDirection;
     ret.TimeBetweenBus = bus.timeBetweenBus;
     ret.RunTime = bus.runTime ;
     ret.Quantity = bus.quantity.HasValue ? bus.quantity.Value : 0;
     return ret;
 }
Beispiel #2
0
 partial void UpdateBUS(BUS instance);
Beispiel #3
0
 partial void DeleteBUS(BUS instance);
Beispiel #4
0
 partial void InsertBUS(BUS instance);