예제 #1
0
파일: VoteBL.cs 프로젝트: zero1036/TGNet
        /// <summary>
        /// 獲取投票信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static VoteBL GetVote(string id)
        {
            VoteDA vda = new VoteDA();

            return(vda.TableToEntity <VoteBL>(vda.GetVote(id)).First());
        }
예제 #2
0
        public VoteCollection()
        {
            VoteDA vda = new VoteDA();

            Votes = vda.TableToEntity <VoteBL>(vda.GetVote());
        }