roadie/Roadie.Api.Library/Data/ReleaseLabel.cs
2019-11-28 11:38:26 -06:00

25 lines
No EOL
672 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("releaselabel")]
public class ReleaseLabel : BeginAndEndEntityBase
{
[Column("catalogNumber")]
public string CatalogNumber { get; set; }
[ForeignKey(nameof(LabelId))]
[InverseProperty("ReleaseLabels")]
public virtual Label Label { get; set; }
[Column("labelId")]
public int LabelId { get; set; }
[ForeignKey(nameof(ReleaseId))]
[InverseProperty("Labels")]
public virtual Release Release { get; set; }
[Column("releaseId")]
public int ReleaseId { get; set; }
}
}