public MyTbCollection FetchAll() { MyTbCollection coll = new MyTbCollection(); Query qry = new Query(MyTb.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public MyTbCollection FetchByQuery(Query qry) { MyTbCollection coll = new MyTbCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public MyTbCollection FetchByID(object Id) { MyTbCollection coll = new MyTbCollection().Where("Id", Id).Load(); return coll; }