Fix up wrt upstream development

This commit is contained in:
Drew DeVault
2016-10-19 10:47:23 -04:00
parent 8e31965fb4
commit c41b3d92c6
5 changed files with 21 additions and 46 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Database
[PrimaryKey]
public int BeatmapID { get; set; }
[NotNull, Indexed]
[ForeignKey(typeof(BeatmapSetInfo)), NotNull]
public int BeatmapSetID { get; set; }
[ForeignKey(typeof(BeatmapMetadata))]
public int BeatmapMetadataID { get; set; }

View File

@ -1,5 +1,6 @@
using System;
using SQLite.Net.Attributes;
using System.Collections.Generic;
using SQLite.Net.Attributes;
using SQLiteNetExtensions.Attributes;
namespace osu.Game.Database
@ -12,6 +13,8 @@ namespace osu.Game.Database
public BeatmapMetadata Metadata { get; set; }
[NotNull, ForeignKey(typeof(BeatmapMetadata))]
public int BeatmapMetadataID { get; set; }
[OneToMany]
public List<BeatmapInfo> Beatmaps { get; set; }
public string Hash { get; set; }
public string Path { get; set; }
}