roadie/Roadie.Api.Library/Data/ArtistSimiliar.cs
2019-11-28 11:38:26 -06:00

28 lines
No EOL
758 B
C#

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