using Dominio.Planes;
using Dominio;
using com.db4o;
+using com.db4o.query;
using System;
using System.Collections;
{
public ArrayList ObtenerSolicitantesPendientes ()
{
- AfiliadoSolicitanteController c = new AfiliadoSolicitanteController ();
- Solicitante s = new Solicitante (0, 0, null, null);
- Promotor p = null; // new Promotor (0, 0, null, null);
- s.Promotor = p;
- ArrayList rtn = c.GetSolicitantes (s);
- c.Dispose ();
- return rtn;
+ Query query = Db.query();
+ query.constrain(typeof(Solicitante));
+ query.descend("_promotor").constrain(null);
+ query.descend("_pendiente").constrain(true);
+
+ ObjectSet result = query.execute();
+ Console.WriteLine (result);
+ ArrayList lst = ObjectSetToArrayList (result);
+
+ return lst;
}
}