예제 #1
0
 public void Update(Author author)
 {
     _context.Entry <Author>(author).State = System.Data.Entity.EntityState.Modified;
     _context.SaveChanges();
 }
예제 #2
0
 public void Update(Publisher publisher)
 {
     _context.Entry <Publisher>(publisher).State = System.Data.Entity.EntityState.Modified;
     _context.SaveChanges();
 }
예제 #3
0
 public void Update(Book book)
 {
     _context.Entry <Book>(book).State = System.Data.Entity.EntityState.Modified;
     _context.SaveChanges();
 }
 public void Update(Category category)
 {
     _context.Entry <Category>(category).State = System.Data.Entity.EntityState.Modified;
     _context.SaveChanges();
 }