Example #1
0
        public IEnumerable <string> LoadTables(long userId)
        {
            IEnumerable <string> toRet;

            if (!CacheHelper.Get(Module + "_TableNames", out toRet))
            {
                var codeRepository = new CodeRepository();
                toRet = codeRepository.LoadTables();
                if (toRet != null)
                {
                    CacheHelper.Add(Module + "_TableNames", toRet, BlCommon.DefaultTimeOut());
                }
            }
            return(toRet);
        }