Пример #1
0
        public SiteMember(int userId)
        {
            DataRow dr = MemberManage.GetUserInfo(userId);

            if (dr != null)
            {
                FillHelper.Fill(dr, this);
            }
        }
Пример #2
0
        public SiteMember(string userName)
        {
            if (string.IsNullOrEmpty(userName) == true)
            {
                throw new ArgumentException("loginName is null or empty");
            }
            DataRow dr = MemberManage.GetUserInfo(userName);

            if (dr != null)
            {
                FillHelper.Fill(dr, this);
            }
        }