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}");
} }

@ -44,10 +44,6 @@ namespace LinqToPgSQL
} }
NpgsqlDataReader dbReader = new NpgsqlCommand("SELECT * FROM Inscrit", conn).ExecuteReader(); NpgsqlDataReader dbReader = new NpgsqlCommand("SELECT * FROM Inscrit", conn).ExecuteReader();
@ -55,7 +51,9 @@ namespace LinqToPgSQL
{ {
ListeInscrits.Add(new Inscrit(dbReader.GetString(0), dbReader.GetString(1), dbReader.GetString(2), dbReader.GetString(3), dbReader.GetString(4))); ListeInscrits.Add(new Inscrit(dbReader.GetString(0), dbReader.GetString(1), dbReader.GetString(2), dbReader.GetString(3), dbReader.GetString(4)));
} }
dbReader.Close(); dbReader.Close();

@ -10,7 +10,7 @@ namespace Model
public class Inscrit 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; Id = id;
Nom = nom; Nom = nom;

Loading…
Cancel
Save