Пример #1
0
 public static void AddMonster(MONSTER monster)
 {
     DBEF.MONSTER.Add(monster);
     DBEF.SaveChanges();
 }
Пример #2
0
 /// <summary>
 /// Deletes a MONSTER from database.
 /// </summary>
 public static void DeleteMonster(MONSTER monster)
 {
     DBEF.MONSTER.Remove(monster);
     DBEF.SaveChanges();
 }