2018-11-02 17:20:36 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Data
|
|
|
|
|
{
|
|
|
|
|
[Table("artistAssociation")]
|
|
|
|
|
public partial class ArtistAssociation
|
|
|
|
|
{
|
2018-12-27 11:37:17 -06:00
|
|
|
|
//[ForeignKey("artistId")]
|
2018-11-02 17:20:36 -05:00
|
|
|
|
public Artist Artist { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("artistId")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int ArtistId { get; set; }
|
|
|
|
|
|
2018-12-27 11:37:17 -06:00
|
|
|
|
//[ForeignKey("associatedArtistId")]
|
2018-11-02 17:20:36 -05:00
|
|
|
|
public Artist AssociatedArtist { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("associatedArtistId")]
|
|
|
|
|
public int AssociatedArtistId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
2018-12-23 15:36:38 -06:00
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2018-11-02 17:20:36 -05:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|