mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Start introducing ILive
This commit is contained in:
@ -104,10 +104,10 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
/// <param name="query">The query.</param>
|
||||
/// <returns>The first result for the provided query, or null if no results were found.</returns>
|
||||
public BeatmapSetInfo? QueryBeatmapSet(Expression<Func<BeatmapSetInfo, bool>> query)
|
||||
public ILive<BeatmapSetInfo>? QueryBeatmapSet(Expression<Func<BeatmapSetInfo, bool>> query)
|
||||
{
|
||||
using (var context = ContextFactory.CreateContext())
|
||||
return context.All<BeatmapSetInfo>().FirstOrDefault(query); // TODO: ?.ToLive();
|
||||
return context.All<BeatmapSetInfo>().FirstOrDefault(query)?.ToLive();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user