roadie/Roadie.Api.Library/Data/ReleaseMedia.cs
2018-12-26 13:39:13 -06:00

33 lines
No EOL
816 B
C#

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