bonjour,
pour ajouter un client a la database, je fais ce code () :
comment recupere ClienteID juste apres l'ajout ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 ProcessAddCliente addutenti = new ProcessAddCliente();//BusinessLogic Layer Cliente cate = new Cliente(); cate.Nome = nome.Text; cate.Cognome = cognome.Text; cate.Indirizzo = indirizzo.Text; cate.CAP = cap.Text; cate.Città = citta.Text; cate.Provincia = provincia.Text; cate.Nazionalità = nazionalita.Text; cate.Telefono = telefono.Text; cate.Fax = fax.Text; cate.Email = email.Text; cate.Note = Session["Note"].ToString(); addutenti.Cliente = cate; try { addutenti.Invoke(); }
Partager