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

25 lines
672 B
C#
Raw Normal View History

2018-11-02 21:11:11 +00:00
using System.ComponentModel.DataAnnotations.Schema;
2018-11-02 21:04:49 +00:00
namespace Roadie.Library.Data
{
[Table("releaselabel")]
public class ReleaseLabel : BeginAndEndEntityBase
{
2019-11-28 17:38:26 +00:00
[Column("catalogNumber")]
public string CatalogNumber { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[ForeignKey(nameof(LabelId))]
[InverseProperty("ReleaseLabels")]
public virtual Label Label { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[Column("labelId")]
public int LabelId { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[ForeignKey(nameof(ReleaseId))]
[InverseProperty("Labels")]
public virtual Release Release { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[Column("releaseId")]
public int ReleaseId { get; set; }
2018-11-02 21:04:49 +00:00
}
2018-11-02 21:11:11 +00:00
}