//Update inventoryitems public static int UpdateInventoryItem(Inventory_Item invItem) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(invItem).State = EntityState.Modified; return(entities.SaveChanges()); } }
//updaten public static int UpdateServer(Server server) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(server).State = EntityState.Modified; return(entities.SaveChanges()); } }
//Update public static int UpdatePlayerRecipe(Player_Recipe recipe) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(recipe).State = EntityState.Modified; return(entities.SaveChanges()); } }
//Update public static int UpdatePlayerAdvancement(Player_Advancement advancement) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(advancement).State = EntityState.Modified; return(entities.SaveChanges()); } }
//updaten public static int UpdateSpeler(Player player) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(player).State = EntityState.Modified; return(entities.SaveChanges()); } }
//Updaten public static int UpdateWorldSetting(World_Setting worldsetting) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(worldsetting).State = EntityState.Modified; return(entities.SaveChanges()); } }
//verwijderen public static int RemoveWorldSetting(World_Setting world_setting) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(world_setting).State = EntityState.Deleted; return(entities.SaveChanges()); } }