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