public TTestgroupDtlCollection FetchByQuery(Query qry)
        {
            TTestgroupDtlCollection coll = new TTestgroupDtlCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TTestgroupDtlCollection FetchAll()
        {
            TTestgroupDtlCollection coll = new TTestgroupDtlCollection();
            Query qry = new Query(TTestgroupDtl.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public TTestgroupDtlCollection FetchByID(object TestGroupId)
        {
            TTestgroupDtlCollection coll = new TTestgroupDtlCollection().Where("TestGroup_ID", TestGroupId).Load();

            return(coll);
        }