Ejemplo n.º 1
0
 public static void crearcliente(string nombre, string apellido, string nit)
 {
     using (EntidadesDataContext objDataContext = new EntidadesDataContext())
     {
         Tb_cliente objEmp = new Tb_cliente();
         // fields to be insert
         objEmp.Nombre   = nombre;
         objEmp.Apellido = apellido;
         objEmp.NIT      = nit;
         objDataContext.Tb_cliente.InsertOnSubmit(objEmp);
         // executes the commands to implement the changes to the database
         objDataContext.SubmitChanges();
     }
 }
 partial void UpdateTb_cliente(Tb_cliente instance);
 partial void DeleteTb_cliente(Tb_cliente instance);
 partial void InsertTb_cliente(Tb_cliente instance);