mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
BeatmapSetInfo
detach support
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user