- 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);
+
+ ObjectSet result = query.execute();
+ Console.WriteLine (result);
+ ArrayList lst = ObjectSetToArrayList (result);
+
+ return lst;