Пример #1
0
 public void SaveChanges(Type typeBeingEdited)
 {
     _context.SaveChanges();
     if (typeBeingEdited == typeof(Samurai))
     {
         if (_context.Samurais.Local.Any())
         {
             SamuraisListInMemory().ToList().ForEach(s => s.IsDirty = false);
         }
     }
     if (typeBeingEdited == typeof(Battle))
     {
         if (_context.Battles.Local.Any())
         {
             BattlesListInMemory().ToList().ForEach(s => s.IsDirty = false);
         }
     }
 }
Пример #2
0
 public void SaveChanges(Type typeBeingEdited)
 {
     _context.SaveChanges();
 }
 public void SaveChanges()
 {
     _context.SaveChanges();
 }