示例#1
0
        public as_sqlGet GetSqlGet(string code)
        {
            var res = new as_sqlGet();
            var key = "as_sqlGet_code_" + code;

            if (CacheManager.EnableCaching && CacheManager.Cache[key] != null && false)
            {
                res = (as_sqlGet)CacheManager.Cache[key];
            }
            else
            {
                try
                {
                    res = db.GetSql(code);
                    CacheManager.CacheData(key, res);
                }
                catch (Exception ex)
                {
                    Debug.LogError(ex);
                }
            }
            return(res);
        }