From 1a0176e1707c254990a62840db990f668f3d5c5f Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Wed, 15 Jun 2005 16:18:00 +0000 Subject: [PATCH] * Pasa en las mejores familias, el archivo que nunca se agrego :P --- demo/src/Controlador/Controller.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 demo/src/Controlador/Controller.cs diff --git a/demo/src/Controlador/Controller.cs b/demo/src/Controlador/Controller.cs new file mode 100644 index 0000000..78d639d --- /dev/null +++ b/demo/src/Controlador/Controller.cs @@ -0,0 +1,27 @@ + +/* Controlador Generico */ +namespace Controlador { + +using com.db4o; +using System; + +public class Controller : IDisposable +{ + private ObjectContainer db; + public ObjectContainer Db { + get { return db; } + } + + public Controller () + { + db = Db4o.openFile("os.yap"); + } + + public void Dispose () + { + db.close (); + } +} + +} + -- 2.43.0