public virtual void Delete(TEntity entityToDelete) { if (context.Entry(entityToDelete).State == EntityState.Detached) { dbSet.Attach(entityToDelete); } dbSet.Remove(entityToDelete); }
public void Edit(Publisher entity) { context.Entry(entity).State = EntityState.Modified; }
public void Edit(UserType entity) { context.Entry(entity).State = EntityState.Modified; }
public void Edit(Book entity) { context.Entry(entity).State = EntityState.Modified; }
public void Edit(Product entity) { context.Entry(entity).State = EntityState.Modified; }