コード例 #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);
        }
コード例 #2
0
        public List <RainRecord> RetrieveAllRainrecords()
        {
            List <RainRecord> allRecords = new List <RainRecord>();

            foreach (DAL.RainTableLive rr in _entities.RainTableLive)
            {
                RainRecord rec = new RainRecord(rr);
                allRecords.Add(rec);
            }
            return(allRecords);
        }
コード例 #3
0
ファイル: Services.cs プロジェクト: afitzy111/ComparisonData
        public List<RainRecord> RetrieveAllRainrecords()
        {
            List<RainRecord> allRecords = new List<RainRecord>();

            foreach (DAL.RainTableLive rr in _entities.RainTableLive)
            {
                RainRecord rec = new RainRecord(rr);
                allRecords.Add(rec);
            }
            return allRecords;
        }
コード例 #4
0
ファイル: Services.cs プロジェクト: afitzy111/ComparisonData
        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;
        }