mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00: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);
|
|
}
|
|
}
|