private void Window_Loaded(object sender, RoutedEventArgs e) { gstBdd = new edfEntities(); int numControleur = contro.id; var query = from cli in gstBdd.client where cli.idcontroleur == numControleur select new ClientPerso { IdControleur = cli.idcontroleur, NomClient = cli.nom, NumClient = cli.identifiant, PrenomClient = cli.prenom, AnceinReleve = cli.ancienReleve, DernierReleve = cli.dernierReleve, Montant = cli.dernierReleve - cli.ancienReleve }; lstClients.ItemsSource = query.ToList(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { gstBdd = new edfEntities(); lstControleurs.ItemsSource = gstBdd.controleur.ToList(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { gstBdd = new edfEntities(); }