modification de la surchage du constructeur inscrit
continuous-integration/drone/push Build is passing Details

connexion
Nicolas MAYE 2 years ago
parent c8291716ac
commit 1c39f4b402

@ -39,7 +39,7 @@ namespace IHM
{
MessageBox.Show($"{i.Id} + {i.Nom} + {i.Mdp} + {i.Mail} + {i.Dev}");
MessageBox.Show($"{i.Id} + {i.Nom} + {i.Prenom} + {i.Mail} + {i.Mdp}");
}

@ -45,18 +45,16 @@ namespace LinqToPgSQL
}
NpgsqlDataReader dbReader = new NpgsqlCommand("SELECT * FROM Inscrit", conn).ExecuteReader();
while (dbReader.Read())
{
ListeInscrits.Add(new Inscrit(dbReader.GetString(0), dbReader.GetString(1), dbReader.GetString(2), dbReader.GetString(3), dbReader.GetString(4)));
}
dbReader.Close();
return ListeInscrits;

@ -10,7 +10,7 @@ namespace Model
public class Inscrit
{
public Inscrit(string id, string nom, string mail, string prenom, string mdp)
public Inscrit(string id, string nom, string prenom, string mail, string mdp)
{
Id = id;
Nom = nom;

Loading…
Cancel
Save