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

28 lines
770 B
C#
Raw Normal View History

2018-11-02 21:04:49 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("collectionrelease")]
2019-07-03 16:21:29 +00:00
public class CollectionRelease : EntityBase
2018-11-02 21:04:49 +00:00
{
2019-11-28 17:38:26 +00:00
[ForeignKey(nameof(CollectionId))]
[InverseProperty("Releases")]
public virtual Collection Collection { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[Column("collectionId")]
[Required]
public int CollectionId { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[Column("listNumber")]
public int ListNumber { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[ForeignKey(nameof(ReleaseId))]
[InverseProperty("Collections")]
public virtual Release Release { get; set; }
2018-11-02 21:04:49 +00:00
2019-11-28 17:38:26 +00:00
[Column("releaseId")]
[Required]
public int ReleaseId { get; set; }
2018-11-02 21:04:49 +00:00
}
}