]> git.llucax.com Git - z.facultad/75.10/miklolife.git/blob - demo/src/Controlador/RutasController.cs
(no commit message)
[z.facultad/75.10/miklolife.git] / demo / src / Controlador / RutasController.cs
1
2 namespace Controlador {
3
4 using Controlador.Afiliacion;
5
6 using Dominio.Afiliados;
7 using Dominio.Planes;
8 using Dominio;
9 using com.db4o;
10 using com.db4o.query;
11
12 using System;
13 using System.Collections;
14
15 public class RutasController : Controller 
16 {
17         public ArrayList ObtenerSolicitantesPendientes ()
18         {
19                 Query query = Db.query();
20                 query.constrain(typeof(Solicitante));
21                 query.descend("_promotor").constrain(null);
22                 query.descend("_pendiente").constrain(true);
23
24                 ObjectSet result = query.execute();
25                 Console.WriteLine (result);             
26                 ArrayList lst = ObjectSetToArrayList (result);
27
28                 return lst;
29         }
30 }
31
32 }