Exemplo n.º 1
0
 public void EnregistrerModif()
 {
     using (BddClientDataContext dc = new BddClientDataContext())
     {
         var       req    = from cli in dc.clientbdd where cli.noclient == this.NoClient select cli;
         clientbdd cliBdd = req.FirstOrDefault();
         cliBdd.nom     = Nom;
         cliBdd.adresse = Adresse;
         //cliBdd.noregion = 0;
         dc.SubmitChanges();
     }
 }
 partial void Updateclientbdd(clientbdd instance);
 partial void Deleteclientbdd(clientbdd instance);
 partial void Insertclientbdd(clientbdd instance);