Add a lower level ConsumableItems implementation

This commit is contained in:
Dean Herbert
2018-02-15 15:52:17 +09:00
parent 671475f3b4
commit 89cf794f98
3 changed files with 27 additions and 22 deletions

View File

@ -21,6 +21,11 @@ namespace osu.Game.Database
{
}
/// <summary>
/// Access items pre-populated with includes for consumption.
/// </summary>
public IQueryable<T> ConsumableItems => AddIncludesForConsumption(ContextFactory.Get().Set<T>());
public void Add(T item)
{
using (var usage = ContextFactory.GetForWrite())