mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
26 lines
No EOL
686 B
C#
26 lines
No EOL
686 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("playlisttrack")]
|
|
public class PlaylistTrack : EntityBase
|
|
{
|
|
[Column("listNumber")]
|
|
[Required]
|
|
public int ListNumber { get; set; }
|
|
|
|
[ForeignKey(nameof(PlayListId))]
|
|
[InverseProperty("Tracks")]
|
|
public virtual Playlist Playlist { get; set; }
|
|
|
|
[Column("playListId")]
|
|
public int PlayListId { get; set; }
|
|
|
|
public virtual Track Track { get; set; }
|
|
|
|
[Column("trackId")]
|
|
[InverseProperty("PlaylistTracks")]
|
|
public int TrackId { get; set; }
|
|
}
|
|
} |