public static void SetDeckBack(int value) { using (var dbContext = new GameDbContext(Paths.GetGameDatabaseFilePath())) { // Get the player profile id for the active profile. Guid playerProfileId = GameState.GetActivePlayerProfileId(); // Get the configuration data from the database. ConfigurationData configurationData = ConfigurationDataService.LoadData(playerProfileId, dbContext); // Modify the configuration data in the database data set. configurationData.DeckBack = value; // Save the changes to the database. ConfigurationDataService.SaveData(configurationData, dbContext); }}