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

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public AprAlertaControlMenorCollection FetchByID(object IdAlerta)
        {
            AprAlertaControlMenorCollection coll = new AprAlertaControlMenorCollection().Where("idAlerta", IdAlerta).Load();

            return(coll);
        }