mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 06:52:55 +08:00
25 lines
827 B
C#
25 lines
827 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Linq;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using osu.Framework.Platform;
|
|
using osu.Game.Database;
|
|
|
|
namespace osu.Game.Scoring
|
|
{
|
|
public class ScoreStore : MutableDatabaseBackedStore<ScoreInfo>
|
|
{
|
|
public ScoreStore(IDatabaseContextFactory factory, Storage storage)
|
|
: base(factory, storage)
|
|
{
|
|
}
|
|
|
|
protected override IQueryable<ScoreInfo> AddIncludesForConsumption(IQueryable<ScoreInfo> query)
|
|
=> base.AddIncludesForConsumption(query)
|
|
.Include(s => s.Files).ThenInclude(f => f.FileInfo)
|
|
.Include(s => s.Beatmap)
|
|
.Include(s => s.Ruleset);
|
|
}
|
|
}
|