Ejemplo n.º 1
0
        /// <summary>
        /// Initialize, loading all items from database
        /// </summary>
        public void InitCache()
        {
            _cacheTime = _dao.GetCurrentDate();
            var list = _dao.Query <T>().ToList();

            LoadItems(list);
            _internalCacheTime = DateTime.Now;
            Debug.Print("EntityCache.InitCache : {0:#,##0} Objects of Type {1} cached.", _items.Count, typeof(T).Name);
        }