Refactor database to reuse existing types

This commit is contained in:
Drew DeVault
2016-10-07 13:50:34 -04:00
parent 23bc26ddac
commit e9a45de51f
11 changed files with 44 additions and 67 deletions

View File

@ -3,6 +3,7 @@
using System.Collections.Generic;
using osu.Game.Users;
using SQLite;
namespace osu.Game.Beatmaps
{
@ -11,12 +12,15 @@ namespace osu.Game.Beatmaps
/// </summary>
public class BeatmapSet
{
public int BeatmapSetID;
[PrimaryKey]
public int BeatmapSetID { get; set; }
[NotNull, Indexed]
public int BeatmapMetadataID { get; set; }
[Ignore]
public List<Beatmap> Beatmaps { get; protected set; }
public Metadata Metadata;
public User Creator;
[Ignore]
public BeatmapMetadata Metadata { get; set; }
[Ignore]
public User Creator { get; set; }
}
}