Esempio n. 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);
         }
     }
 }
Esempio n. 2
0
 public void SaveChanges(Type typeBeingEdited)
 {
     _context.SaveChanges();
 }
 public void SaveChanges()
 {
     _context.SaveChanges();
 }