public PnLegajoCollection FetchByQuery(Query qry) { PnLegajoCollection coll = new PnLegajoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnLegajoCollection FetchAll() { PnLegajoCollection coll = new PnLegajoCollection(); Query qry = new Query(PnLegajo.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnLegajoCollection FetchByID(object IdLegajo) { PnLegajoCollection coll = new PnLegajoCollection().Where("id_legajo", IdLegajo).Load(); return(coll); }