Web/App_Code/SectionProxyData.cs

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*********************************************************************
 * CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
 * Function : 区域缓存代理类
 *  at 2010-8-21 18:53:19.
 
*********************************************************************/
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Web.Caching;

using WMPT.SQLServerDAL;
using WMPT.Model;
using WMPT.Cache;

/// <summary>
///SectionProxyData 的摘要说明
/// </summary>
public class SectionProxyData
{
    /// <summary>
    /// 缓存网站城市
    /// </summary>
    /// <returns></returns>
    public static IList<CityInfo> GetCityList()
    {
        City dal = new City();
        IList<CityInfo> list = (IList<CityInfo>)EasyEatCache.GetCacheService().RetrieveObject("/city");
        if (list == null || list.Count == 0)
        {
            list = dal.GetAllCity();
            EasyEatCache.GetCacheService().AddObject("/city", list);
        }
        return list;
    }

    /// <summary>
    /// 缓存所有区域
    /// </summary>
    /// <returns></returns>
    public static IList<SectionInfo> GetSectionList()
    {
        ESection dal = new ESection();
        IList<SectionInfo> list = (IList<SectionInfo>)EasyEatCache.GetCacheService().RetrieveObject("/section");
        if (list == null || list.Count == 0)
        {
            list = dal.GetAll();
            EasyEatCache.GetCacheService().AddObject("/section", list);
        }
        return list;
    }
后面还有 345 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。