Example #1
0
        /// <summary>
        /// 카테고리에 해당하는 전시 정보들을 반환합니다.
        /// </summary>
        /// <param name="cateCD"></param>
        /// <returns></returns>
        public ModelExhibitInformation GetExhibitInformationByCategoryCD(int cateCD)
        {
            var option = new TransactionOptions
            {
                // Isolation Level 에 주의
                IsolationLevel = IsolationLevel.ReadUncommitted,
                Timeout        = TransactionManager.DefaultTimeout
            };

            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress, option))
            {
                List <ModelExhibitInformation> tmpList      = _daoGlobal.GetExhibitInformationByCategoryCD(cateCD);
                ModelExhibitInformation        returnResult = null;

                if (tmpList.Count > 0)
                {
                    returnResult = tmpList[tmpList.Count - 1];
                }

                return(returnResult);
            }
        }