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

28 lines
No EOL
770 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("collectionrelease")]
public class CollectionRelease : EntityBase
{
[ForeignKey(nameof(CollectionId))]
[InverseProperty("Releases")]
public virtual Collection Collection { get; set; }
[Column("collectionId")]
[Required]
public int CollectionId { get; set; }
[Column("listNumber")]
public int ListNumber { get; set; }
[ForeignKey(nameof(ReleaseId))]
[InverseProperty("Collections")]
public virtual Release Release { get; set; }
[Column("releaseId")]
[Required]
public int ReleaseId { get; set; }
}
}