示例#1
0
 public void Atualizar(TEntity obj)
 {
     _contexto.Entry(obj).State = EntityState.Modified;
     _contexto.SaveChanges();
 }
 public void Update(TEntity obj)
 {
     Db.Entry(obj).State = EntityState.Modified;
     Db.SaveChanges();
 }