Пример #1
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());
     }
 }
Пример #2
0
 //Updaten
 public static int UpdateWorldSetting(World_Setting worldsetting)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.Entry(worldsetting).State = EntityState.Modified;
         return(entities.SaveChanges());
     }
 }
Пример #3
0
 /*=====================
 * WorldSetting
 *  =====================*/
 //toevoegen
 public static int AddWorldSetting(World_Setting world_setting)
 {
     using (MinecraftEntities entities = new MinecraftEntities())
     {
         entities.World_Setting.Add(world_setting);
         return(entities.SaveChanges());
     }
 }