roadie/Roadie.Api.Library/Data/ArtistAssociation.cs
2018-12-27 11:37:17 -06:00

27 lines
No EOL
718 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("artistAssociation")]
public partial class ArtistAssociation
{
//[ForeignKey("artistId")]
public Artist Artist { get; set; }
[Column("artistId")]
[Required]
public int ArtistId { get; set; }
//[ForeignKey("associatedArtistId")]
public Artist AssociatedArtist { get; set; }
[Column("associatedArtistId")]
public int AssociatedArtistId { get; set; }
[Key]
[Column("id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
}
}