roadie/Roadie.Api.Library/Data/ArtistSimiliar.cs
2019-07-03 11:21:29 -05:00

24 lines
No EOL
669 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Data
{
[Table("artistSimilar")]
public class ArtistSimilar
{
//[ForeignKey("artistId")]
public Artist Artist { get; set; }
[Column("artistId")] [Required] public int ArtistId { get; set; }
[Key]
[Column("id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
//[ForeignKey("associatedArtistId")]
public Artist SimilarArtist { get; set; }
[Column("similarArtistId")] public int SimilarArtistId { get; set; }
}
}