public void Excluir(int ID) { using (Connection con = new Connection()) { con.Abrir(); IDAO <Metodo_Pag> TableIDAO = new Metodo_PagDAO(con); Metodo_Pag metodo_pag = new Metodo_Pag(); metodo_pag.METODO_PAG_ID = ID; TableIDAO.Remover(metodo_pag); } }
public Metodo_Pag LocalizarPrimeiro() { Metodo_Pag result = null; using (Connection con = new Connection()) { con.Abrir(); IDAO <Metodo_Pag> TableIDAO = new Metodo_PagDAO(con); result = TableIDAO.LocalizarPrimeiro(); } return(result); }
public void Inserir(Metodo_Pag obj) { using (Connection con = new Connection()) { con.Abrir(); IDAO <Metodo_Pag> TableIDAO = new Metodo_PagDAO(con); Metodo_Pag metodo_pag = new Metodo_Pag(); metodo_pag.METODO_PAG_DESCRICAO = obj.METODO_PAG_DESCRICAO; TableIDAO.Inserir(metodo_pag); } }
public Collection <Metodo_Pag> ListarTudo() { Collection <Metodo_Pag> result = null; using (Connection con = new Connection()) { con.Abrir(); IDAO <Metodo_Pag> TableIDAO = new Metodo_PagDAO(con); result = TableIDAO.ListarTudo(); } return(result); }