public PnObrasSocialeCollection FetchByQuery(Query qry) { PnObrasSocialeCollection coll = new PnObrasSocialeCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnObrasSocialeCollection FetchAll() { PnObrasSocialeCollection coll = new PnObrasSocialeCollection(); Query qry = new Query(PnObrasSociale.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnObrasSocialeCollection FetchByID(object CodOs) { PnObrasSocialeCollection coll = new PnObrasSocialeCollection().Where("cod_os", CodOs).Load(); return(coll); }