Exemplo n.º 1
0
 public Antwoord(Gebruiker gebruiker,Vraag vraag,string inhoud,DateTime datum)
 {
     this.Gebruiker = gebruiker;
     this.Vraag = vraag;
     this.Inhoud = inhoud;
     this.Datum = datum;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Geeft een gebruiker terug 
 /// </summary>
 /// <param name="Voornaam"></param>
 /// <returns>gebruiker</returns>
 public Gebruiker GetGebruiker(string email)
 {
     Gebruiker result = null;
     string sql = "SELECT * FROM Gebruiker WHERE Email ='" + email + "'";
     try
     {
         this.Connect();
         OracleCommand command = this.conn.CreateCommand();
         command.CommandText = sql;
         OracleDataReader reader2 = command.ExecuteReader();
         while (reader2.Read())
         {
             result = new Gebruiker(Convert.ToString(reader2["WACHTWOORD"]), Convert.ToString(reader2["EMAIL"]));
         }
     }
     catch
     {
         return null;
     }
     this.Disconnect();
     return result;
 }