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