Esempio n. 1
0
        public List <as_sqlGet> GetSqlCruds()
        {
            var res = new List <as_sqlGet>();
            var key = "as_sqlGet";

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