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

28 lines
770 B
C#
Raw Normal View History

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