public List <myOrderDto> Method_APP_ResetList() { var listTemp = new List <myOrderDto>(); var objectTemp = new myOrderDto() { id = null, idClient = null, note = null, date = null, price = null, }; objectTemp.client.firstName = null; objectTemp.client.lastName = null; objectTemp.client.gender = null; objectTemp.client.company = null; listTemp.Add(objectTemp); return(listTemp); }
private List <myOrderDto> Method_APP_TransformaReaderEm_ListaDeObjeto(SqlDataReader reader) { var listTemp = new List <myOrderDto>(); while (reader.Read()) { var objectTemp = new myOrderDto() { id = reader["id"].ToString(), idClient = reader["idClient"].ToString(), note = reader["note"].ToString(), date = reader["date"].ToString(), price = reader["price"].ToString(), firstName = reader["firstName"].ToString(), lastName = reader["lastName"].ToString(), gender = reader["gender"].ToString(), company = reader["company"].ToString() }; listTemp.Add(objectTemp); } reader.Close(); return(listTemp); }