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