mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 16:42:53 +08:00
23 lines
753 B
C#
23 lines
753 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System.Linq;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using osu.Framework.Platform;
|
|
using osu.Game.Database;
|
|
|
|
namespace osu.Game.Skinning
|
|
{
|
|
public class SkinStore : MutableDatabaseBackedStore<SkinInfo>
|
|
{
|
|
public SkinStore(DatabaseContextFactory contextFactory, Storage storage = null)
|
|
: base(contextFactory, storage)
|
|
{
|
|
}
|
|
|
|
protected override IQueryable<SkinInfo> AddIncludesForConsumption(IQueryable<SkinInfo> query) =>
|
|
base.AddIncludesForConsumption(query)
|
|
.Include(s => s.Files).ThenInclude(f => f.FileInfo);
|
|
}
|
|
}
|