mirror of
https://github.com/sphildreth/roadie
synced 2024-11-26 14:10:21 +00:00
24 lines
No EOL
669 B
C#
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; }
|
|
}
|
|
} |