Beispiel #1
0
 public void UpdateCategory(Category entity)
 {
     _context.Entry(entity).State = EntityState.Modified;
     _context.SaveChanges();
 }
Beispiel #2
0
 public void UpdateCategory(Category entity)
 {
     context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
     context.SaveChanges();
 }
 public void UpdateCategory(Category entity)
 {
     context.Entry(entity).State = EntityState.Modified;     //State => Modified,Added,Deleted,...
     context.SaveChanges();
 }