private void GetRole(int roleId) { using (IDataReader reader = DBRoles.GetById(roleId)) { if (reader.Read()) { this.roleID = int.Parse(reader["RoleID"].ToString()); this.siteID = int.Parse(reader["SiteID"].ToString()); if (UseRelatedSiteMode) { siteID = RelatedSiteID; } this.roleName = reader["RoleName"].ToString(); this.displayName = reader["DisplayName"].ToString(); this.siteGuid = new Guid(reader["SiteGuid"].ToString()); this.roleGuid = new Guid(reader["RoleGuid"].ToString()); } } }