//------------------------------------------------------------------------------------------------------------------------------------------ public List <DTO.RoleDTO> SelectAllRoleByDataReader() { List <DTO.RoleDTO> list = new List <DTO.RoleDTO>(); string strCmd = "select_all_role"; SqlDataReader rd = _DataProvicer.ExecuteQueryWithDataReader(strCmd, CommandType.StoredProcedure); if (rd.HasRows) { while (rd.Read()) { DTO.RoleDTO dto = new DTO.RoleDTO { RoleID = rd.GetString(0), RoleName = rd.GetString(1), }; list.Add(dto); } } return(list); }
public ClientInfoDTO(DeviceDTO device, RoleDTO role, TokenDTO token) { this._device = device; this._role = role; this._token = token; }
public ClientInfoDTO() { this._device = null; this._role = null; this._token = null; }