コード例 #1
0
ファイル: FeastListEx.cs プロジェクト: 5509850/baumax
        protected virtual CountryFeastListEx DoLoad(long countryid, DateTime from, DateTime to)
        {
            CountryFeastListEx item = new CountryFeastListEx(countryid, from, to);

            _diction[countryid] = item;
            return(item);
        }
コード例 #2
0
ファイル: FeastListEx.cs プロジェクト: 5509850/baumax
        public Feast FeastExists(long countryid, DateTime date)
        {
            CountryFeastListEx item = this[countryid];
            Feast feast             = null;

            if (item != null)
            {
                item.TryGetValue(date, out feast);
            }

            return(feast);
        }
コード例 #3
0
ファイル: FeastListEx.cs プロジェクト: 5509850/baumax
 public CountryFeastListEx this[long id]
 {
     get
     {
         CountryFeastListEx item = null;
         if (!_diction.TryGetValue(id, out item))
         {
             item = DoLoad(id, FromDate, ToDate);
         }
         return(item);
     }
 }