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

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public VgiAClinicosDetCollection FetchByID(object IdVGIAClinico)
        {
            VgiAClinicosDetCollection coll = new VgiAClinicosDetCollection().Where("idVGIAClinico", IdVGIAClinico).Load();

            return(coll);
        }