示例#1
0
 public static string[] GetCitiesForDate(DateTime date)
 {
     using (var conn = GetConnection())
     {
         var storer = new MySqlWeaterDataItemStorer(conn);
         return(storer.GetCitiesForDate(date));
     }
 }
示例#2
0
 public static WeatherDataItem GetWeather(string city, DateTime date)
 {
     using (var conn = GetConnection())
     {
         var storer = new MySqlWeaterDataItemStorer(conn);
         return(storer.GetWeather(city, date));
     }
 }
示例#3
0
 public static void UpdateRecords(List <WeatherDataItem> items)
 {
     using (var conn = GetConnection())
     {
         var storer = new MySqlWeaterDataItemStorer(conn);
         storer.UpdateRecords(items);
     }
 }