Example #1
0
        public RainRecord getRecord(int year)
        {
            DAL.RainTableLive rain = (from cool in _entities.RainTableLive
                                      where cool.Year_Ref == year
                                      select cool).FirstOrDefault();

            RainRecord rec = new RainRecord(rain);

            return(rec);
        }
Example #2
0
 public RainRecord(RainTableLive dbRain)
 {
     this.rainID = dbRain.Record_ID;
     this.yearRef = (int)dbRain.Year_Ref;
     this.outflowFullYear = (int)dbRain.Outflow_Full_Year;
     this.outflowSummer = (int)dbRain.Outflow_Summer;
     this.outflowWinter = (int)dbRain.Outflow_Winter;
     this.rainFullYear = (int)dbRain.Rain_Full_Year;
     this.rainSummer = (int)dbRain.Rain_Summer;
     this.rainWinter = (int)dbRain.Rain_Winter;
 }