Пример #1
0
 //Update inventoryitems
 public static int UpdateInventoryItem(Inventory_Item invItem)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(invItem).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #2
0
 //updaten
 public static int UpdateServer(Server server)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(server).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #3
0
 //Update
 public static int UpdatePlayerRecipe(Player_Recipe recipe)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(recipe).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #4
0
 //Update
 public static int UpdatePlayerAdvancement(Player_Advancement advancement)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(advancement).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #5
0
 //updaten
 public static int UpdateSpeler(Player player)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(player).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #6
0
 //Updaten
 public static int UpdateWorldSetting(World_Setting worldsetting)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(worldsetting).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #7
0
 //verwijderen
 public static int RemoveWorldSetting(World_Setting world_setting)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(world_setting).State = EntityState.Deleted;
         return(entities.SaveChanges());
     }
 }