Пример #1
0
 internal MetroTransferEntity(MetroWebEntity metroWeb, MetroTransfer metroTransfer)
 {
     this.metroWeb          = metroWeb;
     this.transferId        = metroTransfer.TransferId.Value;
     this.fromStationLineId = metroTransfer.FromStationLineId.Value;
     this.toStationLineId   = metroTransfer.ToStationLineId.Value;
     this.timeTransfer      = metroTransfer.TimeTransfer.Value;
     this.interChange       = metroTransfer.InterChange.Value;
 }
Пример #2
0
 internal StationEntity(MetroWebEntity metroWeb, Station station)
 {
     this.metroWeb     = metroWeb;
     this.stationId    = station.StationId.Value;
     this.stationName  = station.StationName;
     this.stationX     = station.StationX.Value;
     this.stationY     = station.StationY.Value;
     this.stationNameX = station.StationNameX.Value;
     this.stationNameY = station.StationNameY.Value;
 }
Пример #3
0
 public LineEntity(MetroWebEntity metroWeb, Line line)
 {
     this.metroWeb          = metroWeb;
     this.lineId            = line.LineId.Value;
     this.lineName          = line.LineName;
     this.lineFromStationId = line.LineFromStationId.Value;
     this.lineToStationId   = line.LineToStationId.Value;
     this.lineColor         = line.LineColor;
     this.linePath          = line.LinePath;
 }
Пример #4
0
 internal StationLineEntity(MetroWebEntity metroWeb, StationLine stationLine)
 {
     this.metroWeb      = metroWeb;
     this.stationLine   = stationLine;
     this.stationLineId = stationLine.StationLineId.Value;
     this.lineId        = stationLine.LineId.Value;
     this.stationId     = stationLine.StationId.Value;
     this.timeWait      = stationLine.TimeWait.Value;
     this.timeArrived   = stationLine.TimeArrived.Value;
     this.startTime     = stationLine.StartTime.Value;
     this.endTime       = stationLine.EndTime.Value;
 }
Пример #5
0
 public LineCollectionEntity(MetroWebEntity metroWeb)
 {
     this.metroWeb       = metroWeb;
     this.needCheckQuery = true;
 }
Пример #6
0
 internal MetroTransferCollectionEntity(MetroWebEntity metroWeb)
 {
     this.metroWeb = metroWeb;
 }
 internal StationLineCollectionEntity(MetroWebEntity metroWeb)
 {
     this.metroWeb       = metroWeb;
     this.needCheckQuery = true;
 }