Merge pull request #12003 from UselessToucan/ef_core_5

This commit is contained in:
Dean Herbert
2021-03-15 15:05:32 +09:00
committed by GitHub
18 changed files with 109 additions and 30 deletions

View File

@ -174,6 +174,8 @@ namespace osu.Game.Beatmaps
if (beatmapSet.Beatmaps.Any(b => b.BaseDifficulty == null))
throw new InvalidOperationException($"Cannot import {nameof(BeatmapInfo)} with null {nameof(BeatmapInfo.BaseDifficulty)}.");
beatmapSet.Requery(ContextFactory);
// check if a set already exists with the same online id, delete if it does.
if (beatmapSet.OnlineBeatmapSetID != null)
{