public SiteMember(int userId) { DataRow dr = MemberManage.GetUserInfo(userId); if (dr != null) { FillHelper.Fill(dr, this); } }
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); } }