Beispiel #1
0
 //Update
 public static int UpdatePlayerAdvancement(Player_Advancement advancement)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(advancement).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Beispiel #2
0
 /*=====================
 * Advancement
 *  =====================*/
 //toevoegen
 public static int AddPlayerAdvancement(Player_Advancement player_advancement)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Player_Advancement.Add(player_advancement);
         return(entities.SaveChanges());
     }
 }