Example #1
0
        /// <summary>
        /// 根据会员用户名获取会员及详细信息
        /// </summary>
        /// <param name="username"></param>
        /// <param name="member"></param>
        /// <param name="details"></param>
        public void GetMemberDetails(string username, out Member member, out MemberDetails details)
        {
            Member        m = null;
            MemberDetails d = null;

            dal.GetMemberDetailsByUsername(username, rd =>
            {
                if (rd.HasRows)
                {
                    rd.Read();
                    FillMemberDetails(rd, out m, out d);
                }
            });
            member  = m;
            details = d;
        }