Exemplo n.º 1
0
        public void Excluir(int ID)
        {
            using (Connection con = new Connection())
            {
                con.Abrir();
                IDAO <Tipo_Pag> TableIDAO = new Tipo_PagDAO(con);

                Tipo_Pag tipo_pag = new Tipo_Pag();
                tipo_pag.TIPO_PAG_ID = ID;

                TableIDAO.Remover(tipo_pag);
            }
        }
Exemplo n.º 2
0
        public Tipo_Pag LocalizarPrimeiro()
        {
            Tipo_Pag result = null;

            using (Connection con = new Connection())
            {
                con.Abrir();
                IDAO <Tipo_Pag> TableIDAO = new Tipo_PagDAO(con);

                result = TableIDAO.LocalizarPrimeiro();
            }

            return(result);
        }
Exemplo n.º 3
0
        public void Inserir(Tipo_Pag obj)
        {
            using (Connection con = new Connection())
            {
                con.Abrir();
                IDAO <Tipo_Pag> TableIDAO = new Tipo_PagDAO(con);

                Tipo_Pag tipo_pag = new Tipo_Pag();

                tipo_pag.TIPO_PAG_DESCRICAO = obj.TIPO_PAG_DESCRICAO;

                TableIDAO.Inserir(tipo_pag);
            }
        }
Exemplo n.º 4
0
        public Collection <Tipo_Pag> ListarTudo()
        {
            Collection <Tipo_Pag> result = null;

            using (Connection con = new Connection())
            {
                con.Abrir();
                IDAO <Tipo_Pag> TableIDAO = new Tipo_PagDAO(con);

                result = TableIDAO.ListarTudo();
            }

            return(result);
        }