mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
28 lines
No EOL
758 B
C#
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; }
|
|
}
|
|
} |