public override string ToString()
 {
     return(MarketId.ToString()
            + "," + MarketOffDatetime.ToString("yyyy-MM-dd HH:mm:ss")
            + "," + SnapshotDatetime.ToString("yyyy-MM-dd HH:mm:ss")
            + "," + SecondsBeforeOff.ToString()
            + "," + SelectionId.ToString()
            + "," + SelectionName.ToString()
            + "," + (Back3 == 0 ? @"\N" : Back3.ToString())
            + "," + (Back3Vol == 0 ? @"\N" : Back3Vol.ToString())
            + "," + (Back2 == 0 ? @"\N" : Back2.ToString())
            + "," + (Back2Vol == 0 ? @"\N" : Back2Vol.ToString())
            + "," + (Back == 0 ? @"\N" : Back.ToString())
            + "," + (BackVol == 0 ? @"\N" : BackVol.ToString())
            + "," + (Lay == 0 ? @"\N" : Lay.ToString())
            + "," + (LayVol == 0 ? @"\N" : LayVol.ToString())
            + "," + (Lay2 == 0 ? @"\N" : Lay2.ToString())
            + "," + (Lay2Vol == 0 ? @"\N" : Lay2Vol.ToString())
            + "," + (Lay3 == 0 ? @"\N" : Lay3.ToString())
            + "," + (Lay3Vol == 0 ? @"\N" : Lay3Vol.ToString())
            + "," + (Trade ? "1" : "0")
            + "," + (LastTradedPrice == 0 ? @"\N" : LastTradedPrice.ToString())
            + "," + CumulTradedVolSelection.ToString()
            + "," + CumulTradedVolMarket.ToString()
            + "," + (BecomesNonRunner ? "1" : "0")
            + "," + (ReductionFactorToApply > 0 ? ReductionFactorToApply.ToString() : @"\N")
            + "," + (Midpoint == 0 ? @"\N" : Midpoint.ToString())
            + "," + (WeightedAverage == 0 ? @"\N" : WeightedAverage.ToString())
            );
 }
Beispiel #2
0
 public override string ToString()
 {
     return(EventId.ToString()
            + "," + MarketId.ToString()
            + "," + (MeetingDate > DateTime.MinValue ? MeetingDate.ToString("yyyy-MM-dd") : @"\N")
            + "," + DayOfWeek.ToString()
            + "," + CountryCode.ToString()
            + "," + Track.ToString()
            + "," + (RaceTime > DateTime.MinValue ? RaceTime.ToString("yyyy-MM-dd HH:mm:ss") : @"\N")
            + "," + (OffTime > DateTime.MinValue ? OffTime.ToString("yyyy-MM-dd HH:mm:ss") : @"\N")
            + "," + MarketName.ToString()
            + "," + Entries.ToString()
            + "," + Runners.ToString()
            + "," + SelectionId.ToString()
            + "," + SelectionName.ToString()
            + "," + (Bsp > 1 ? Bsp.ToString() : @"\N")
            + "," + (NonRunner ? "1" : "0")
            + "," + (RemovalTime > DateTime.MinValue ? RemovalTime.ToString("yyyy-MM-dd HH:mm:ss") : @"\N")
            + "," + (NonRunner ? ReductionFactor.ToString() : @"\N")
            );
 }