示例#1
0
        private static void SetupCacheForShef(CsvFile csv, DateTime t1, DateTime t2)
        {
            Cache = new HydrometDataCache();

            // get list of pcodes and cbtts
            var query = from row in csv.AsEnumerable()
                        select row.Field <string>("cbtt")
                        + " " + row.Field <string>("pcode");

            Cache.Add(query.ToArray(), t1, t2, HydrometHost.PNLinux, TimeInterval.Daily);
        }