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

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public SysDepartamentoCollection FetchByID(object IdDepartamento)
        {
            SysDepartamentoCollection coll = new SysDepartamentoCollection().Where("idDepartamento", IdDepartamento).Load();

            return(coll);
        }