1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-26 14:32:55 +08:00
osu-lazer/osu.Game/Skinning/SkinStore.cs

23 lines
820 B
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
using System.Linq;
using Microsoft.EntityFrameworkCore;
2018-04-13 17:19:50 +08:00
using osu.Framework.Platform;
using osu.Game.Database;
namespace osu.Game.Skinning
{
public class SkinStore : MutableDatabaseBackedStoreWithFileIncludes<SkinInfo, SkinFileInfo>
2018-04-13 17:19:50 +08:00
{
public SkinStore(DatabaseContextFactory contextFactory, Storage storage = null)
: base(contextFactory, storage)
{
}
protected override IQueryable<SkinInfo> AddIncludesForDeletion(IQueryable<SkinInfo> query) =>
base.AddIncludesForDeletion(query)
.Include(s => s.Settings); // don't include FileInfo. these are handled by the FileStore itself.
2018-04-13 17:19:50 +08:00
}
}