//Update public static int UpdatePlayerRecipe(Player_Recipe recipe) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Entry(recipe).State = EntityState.Modified; return(entities.SaveChanges()); } }
/*===================== * Recipes * =====================*/ //toevoegen public static int AddPlayerRecipe(Player_Recipe playerrecipe) { using (MinecraftEntities entities = new MinecraftEntities()) { entities.Player_Recipe.Add(playerrecipe); return(entities.SaveChanges()); } }