mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
28 lines
No EOL
770 B
C#
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; }
|
|
}
|
|
} |