public void Alterar(AUTOR oAutor, bool attach = true) { if (attach) { odb.Entry(oAutor).State = System.Data.Entity.EntityState.Modified; } odb.SaveChanges(); }
public void Alterar(GENERO oGenero, bool attach = true) { if (attach) { odb.Entry(oGenero).State = System.Data.Entity.EntityState.Modified; } odb.SaveChanges(); }
public void Alterar(EDITORA oEditora, bool attach = true) { if (attach) { odb.Entry(oEditora).State = System.Data.Entity.EntityState.Modified; } odb.SaveChanges(); }