Browse Source

去掉及时性

master
qian 11 months ago
parent
commit
d79608dc47
  1. 8
      北京北汽/Models/ScpCache.cs
  2. 8
      北京北汽/SCP/Business/PageBase.cs

8
北京北汽/Models/ScpCache.cs

@ -253,11 +253,11 @@ namespace CK.SCP.Models
{ {
get get
{ {
//if (_LangauageList == null || _LangauageList.Count == 0) if (_LangauageList == null || _LangauageList.Count == 0)
//{ {
// 为了及时性 每次都直接读取 //// 为了及时性 每次都直接读取
_LangauageList = ScpDb.TA_LANGUAGE.ToList(); _LangauageList = ScpDb.TA_LANGUAGE.ToList();
//} }
return _LangauageList; return _LangauageList;
} }

8
北京北汽/SCP/Business/PageBase.cs

@ -1242,11 +1242,11 @@ namespace SCP
if (!string.IsNullOrEmpty(p_key)) if (!string.IsNullOrEmpty(p_key))
{ {
List<TA_LANGUAGE> _ls = null; List<TA_LANGUAGE> _ls = null;
//if (Application["LanguageList"] == null) if (Application["LanguageList"] == null)
//{ {
// 为了及时性 每次都直接读取 //// 为了及时性 每次都直接读取
Application["LanguageList"] = ScpCache.LangauageList; Application["LanguageList"] = ScpCache.LangauageList;
//} }
_ls = Application["LanguageList"] as List<TA_LANGUAGE>; _ls = Application["LanguageList"] as List<TA_LANGUAGE>;
if (_ls != null) if (_ls != null)

Loading…
Cancel
Save