Some .osu file sources (or database sources) may be in a bad state. We want to get these ones right as they cannot be enforced by the database itself (via FKs or constraints).
Caused a stall as experienced in #1364.
Main fix is avoiding nullrefs being thrown when metadata isn't present on a beatmap (quite a common scenario).
Because we are not sharing a single context, we need to use Update to attach the entity to the local context.
This reverts commit 7cf5d63cd3.
7cf5d63cd3
This reverts commit 4a064da30f.
4a064da30f
# Conflicts: # osu-framework # osu.Game/Beatmaps/BeatmapMetadata.cs # osu.Game/osu.Game.csproj # osu.Game/packages.config
# Conflicts: # osu-framework # osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs # osu.Game/Beatmaps/BeatmapInfo.cs # osu.Game/Online/API/Requests/GetBeatmapSetsResponse.cs