From: Ricardo Markiewicz Date: Tue, 14 Jun 2005 01:13:41 +0000 (+0000) Subject: * Guarda datos en la DB X-Git-Tag: svn_import~357 X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/commitdiff_plain/21ddf785e4f47b905ff536229fcf5bec366293a8?ds=inline;hp=38a0118c9dc0bff1cf5cfc22c760634ba2879ce3 * Guarda datos en la DB --- diff --git a/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs b/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs index 38259db..c940f89 100644 --- a/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs +++ b/carpeta/disenio_grafico/src/Controlador/AfiliadoSolicitanteController.cs @@ -102,6 +102,8 @@ public class AfiliadoSolicitanteController d.Telefono = telefono; s.Direccion = d; + + SaveSolicitante (s); } public void EliminarAfiliado () {} @@ -119,6 +121,11 @@ public class AfiliadoSolicitanteController try { //do something with db4o db.set (s); + ObjectSet result = db.get(s); + Console.WriteLine (result.next()); + } + catch (Exception e) { + Console.WriteLine (e); } finally { db.close();