Beispiel #1
0
 /// <summary>
 /// 根据字典详细信息ID获取字典实体集合
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public List <DataItemDetailEntity> GetDataItemListById(string id)
 {
     if (!string.IsNullOrEmpty(id))
     {
         List <DataItemDetailEntity> entity = CacheFactory.Cache().GetCache <List <DataItemDetailEntity> >("__" + id + "__DATA__ITEM__LIST__");
         if (entity == null)
         {
             entity = busines.GetDataItemListById(id);
             CacheFactory.Cache().WriteCache(entity, "__" + id + "__DATA__ITEM__LIST__");
         }
         return(entity);
     }
     return(default(List <DataItemDetailEntity>));
 }