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

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public SysMotivoNICollection FetchByID(object IdMotivoNI)
        {
            SysMotivoNICollection coll = new SysMotivoNICollection().Where("idMotivoNI", IdMotivoNI).Load();

            return(coll);
        }