예제 #1
0
 public void Editar(T entity)
 {
     Contexto.Entry(entity).State = EntityState.Modified;
     this.Salvar();
 }
예제 #2
0
 public void Update(T entity)
 {
     DB.Entry(entity).State = EntityState.Modified;
     DB.SaveChanges();
 }