BeatmapSetInfo detach support

This commit is contained in:
Dean Herbert
2022-01-07 14:17:22 +09:00
parent de076678fe
commit 8461eaab46
10 changed files with 90 additions and 10 deletions

View File

@ -107,7 +107,7 @@ namespace osu.Game.Beatmaps
public BeatmapInfo? QueryBeatmap(Expression<Func<BeatmapInfo, bool>> query)
{
using (var context = ContextFactory.CreateContext())
return context.All<BeatmapInfo>().FirstOrDefault(query); // TODO: ?.ToLive();
return context.All<BeatmapInfo>().FirstOrDefault(query)?.Detach();
}
}
}