2019-01-24 08:43:03 +00:00
|
|
|
|
// 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 09:19:50 +00:00
|
|
|
|
|
2019-05-25 06:09:31 +00:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
using osu.Framework.Platform;
|
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Skinning
|
|
|
|
|
{
|
2019-03-01 01:25:21 +00:00
|
|
|
|
public class SkinStore : MutableDatabaseBackedStoreWithFileIncludes<SkinInfo, SkinFileInfo>
|
2018-04-13 09:19:50 +00:00
|
|
|
|
{
|
|
|
|
|
public SkinStore(DatabaseContextFactory contextFactory, Storage storage = null)
|
|
|
|
|
: base(contextFactory, storage)
|
|
|
|
|
{
|
|
|
|
|
}
|
2019-05-25 06:09:31 +00:00
|
|
|
|
|
|
|
|
|
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 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|