Fix initialization of BeatmapInfo

This commit is contained in:
Drew DeVault
2016-10-19 13:13:14 -04:00
parent 3ee0bf2b80
commit 8d4a211419
3 changed files with 8 additions and 7 deletions

View File

@ -9,16 +9,12 @@ namespace osu.Game.Database
{
public class BeatmapInfo
{
public BeatmapInfo()
{
BaseDifficulty = new BaseDifficulty();
Metadata = new BeatmapMetadata();
}
[PrimaryKey]
public int BeatmapID { get; set; }
[ForeignKey(typeof(BeatmapSetInfo)), NotNull]
public int BeatmapSetID { get; set; }
[ManyToOne]
public BeatmapSetInfo BeatmapSet { get; set; }
[ForeignKey(typeof(BeatmapMetadata))]
public int BeatmapMetadataID { get; set; }
[ForeignKey(typeof(BaseDifficulty)), NotNull]