示例#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());
        }