public ChiTietSpCollection FetchByQuery(Query qry) { ChiTietSpCollection coll = new ChiTietSpCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ChiTietSpCollection FetchAll() { ChiTietSpCollection coll = new ChiTietSpCollection(); Query qry = new Query(ChiTietSp.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ChiTietSpCollection FetchByID(object Machitietsp) { ChiTietSpCollection coll = new ChiTietSpCollection().Where("machitietsp", Machitietsp).Load(); return(coll); }