roadie/Roadie.Api.Library/Data/ReleaseMedia.cs

33 lines
816 B
C#
Raw Normal View History

2018-11-02 21:11:11 +00:00
using System.Collections.Generic;
2018-11-02 21:04:49 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("releasemedia")]
public class ReleaseMedia : EntityBase
{
2018-11-02 21:11:11 +00:00
[Column("releaseMediaNumber")]
public short MediaNumber { get; set; }
2018-11-02 21:04:49 +00:00
public Release Release { get; set; }
2018-11-02 21:11:11 +00:00
[Column("releaseId")]
public int ReleaseId { get; set; }
2018-11-02 21:04:49 +00:00
[Column("releaseSubTitle")]
[MaxLength(500)]
public string SubTitle { get; set; }
[Column("trackCount")]
[Required]
public short TrackCount { get; set; }
public ICollection<Track> Tracks { get; set; }
2018-12-15 04:19:52 +00:00
public ReleaseMedia()
{
this.Tracks = new HashSet<Track>();
}
2018-11-02 21:04:49 +00:00
}
2018-11-02 21:11:11 +00:00
}