public Categoria Buscar(int id) { using (var context = new ProjetoContext()) { return(context.Categoria.Find(id)); } }
public Produto Buscar(int id) { using (var context = new ProjetoContext()) { return(context.Produto.Find(id)); } }
public PessoaJuridica Buscar(int id) { using (var context = new ProjetoContext()) { return(context.PessoaJuridica.Find(id)); } }
public IList <PessoaJuridica> Lista() { using (var context = new ProjetoContext()) { return(context.PessoaJuridica.ToList()); } }
public IList <Produto> Lista() { using (var context = new ProjetoContext()) { return(context.Produto.ToList()); } }
public Login Buscar(int id) { using (var context = new ProjetoContext()) { return(context.Login.Find(id)); } }
public Vendas Buscar(int id) { using (var context = new ProjetoContext()) { return(context.Vendas.Find(id)); } }
public IList <Login> Lista() { using (var context = new ProjetoContext()) { return(context.Login.ToList()); } }
public IList <Vendas> Lista() { using (var context = new ProjetoContext()) { return(context.Vendas.ToList()); } }
public IList <Categoria> Lista() { using (var context = new ProjetoContext()) { return(context.Categoria.ToList()); } }
public TipoUsuario Buscar(int id) { using (var context = new ProjetoContext()) { return(context.TipoUsuario.Find(id)); } }
public IList <TipoUsuario> Lista() { using (var context = new ProjetoContext()) { return(context.TipoUsuario.ToList()); } }
public void Adicionar(Login login) { using (var context = new ProjetoContext()) { context.Login.Add(login); context.SaveChanges(); } }
public void Atualizar(Promocao promocao) { using (var context = new ProjetoContext()) { context.Promocao.Update(promocao); context.SaveChanges(); } }
public void Atualizar(Vendas venda) { using (var context = new ProjetoContext()) { context.Vendas.Update(venda); context.SaveChanges(); } }
public void Remover(TipoUsuario tipo) { using (var context = new ProjetoContext()) { context.TipoUsuario.Remove(tipo); context.SaveChanges(); } }
public void Adicionar(Produto produto) { using (var context = new ProjetoContext()) { context.Produto.Add(produto); context.SaveChanges(); } }
public void Remover(Categoria categoria) { using (var context = new ProjetoContext()) { context.Categoria.Remove(categoria); context.SaveChanges(); } }
public void Adicionar(Categoria categoria) { using (var context = new ProjetoContext()) { context.Categoria.Add(categoria); context.SaveChanges(); } }
public void Atualizar(TipoUsuario tipo) { using (var context = new ProjetoContext()) { context.TipoUsuario.Update(tipo); context.SaveChanges(); } }
public void Remover(Login login) { using (var context = new ProjetoContext()) { context.Login.Remove(login); context.SaveChanges(); } }
public void Remover(PessoaJuridica pessoaJuridica) { using (var context = new ProjetoContext()) { context.PessoaJuridica.Remove(pessoaJuridica); context.SaveChanges(); } }
public void Atualizar(Login login) { using (var context = new ProjetoContext()) { context.Login.Update(login); context.SaveChanges(); } }
public void Remover(Vendas vendas) { using (var context = new ProjetoContext()) { context.Vendas.Remove(vendas); context.SaveChanges(); } }
public void Atualizar(ProdutoVendas pv) { using (var context = new ProjetoContext()) { context.ProdutoVendas.Update(pv); context.SaveChanges(); } }
public void Adicionar(TipoUsuario tipo) { using (var context = new ProjetoContext()) { context.TipoUsuario.Add(tipo); context.SaveChanges(); } }
public void Remover(Produto produto) { using (var context = new ProjetoContext()) { context.Produto.Remove(produto); context.SaveChanges(); } }
public void Adicionar(PessoaJuridica pessoaJuridica) { using (var context = new ProjetoContext()) { context.PessoaJuridica.Add(pessoaJuridica); context.SaveChanges(); } }
public void Adicionar(Vendas vendas) { using (var context = new ProjetoContext()) { context.Vendas.Add(vendas); context.SaveChanges(); } }
public void Remover(ProdutoVendas pv) { using (var context = new ProjetoContext()) { context.ProdutoVendas.Remove(pv); context.SaveChanges(); } }