public PnAnexoCollection FetchByQuery(Query qry) { PnAnexoCollection coll = new PnAnexoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnAnexoCollection FetchAll() { PnAnexoCollection coll = new PnAnexoCollection(); Query qry = new Query(PnAnexo.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnAnexoCollection FetchByID(object IdAnexo) { PnAnexoCollection coll = new PnAnexoCollection().Where("id_anexo", IdAnexo).Load(); return(coll); }