Example #1
0
        /// <summary>
        /// 모바일 네비게이션 루트 정보 조회
        /// </summary>
        public List <ViewModelMobileNavigation> GetCategoryDepthList(int cateCD)
        {
            var option = new TransactionOptions
            {
                // Isolation Level 에 주의
                IsolationLevel = IsolationLevel.ReadUncommitted,
                Timeout        = TransactionManager.DefaultTimeout
            };

            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress, option))
            {
                List <ModelMobileNavigation>     tmpList      = _daoGlobal.GetCategoryDepthList(cateCD);
                List <ViewModelMobileNavigation> returnResult = new List <ViewModelMobileNavigation>();

                if (tmpList != null)
                {
                    foreach (ModelMobileNavigation n in tmpList)
                    {
                        ViewModelMobileNavigation obj = new ViewModelMobileNavigation();

                        obj.CateCD = n.CateCD;
                        obj.CateNM = n.CateNM;
                        obj.Lvl    = n.lvl;

                        returnResult.Add(obj);
                    }
                }

                return(returnResult);
            }
        }