Exemplo n.º 1
0
 public void Update <T>(T entity) where T : class
 {
     _context.Update(entity);
 }
Exemplo n.º 2
0
 public void Update <T>(T entity) where T : class
 {
     //o aluno ou professor é o nosso entity. O T precisa ser conhecido pelo DBContext.
     _context.Update(entity);
 }