mirror of
https://github.com/sphildreth/roadie
synced 2024-11-22 20:23:16 +00:00
22 lines
No EOL
577 B
C#
22 lines
No EOL
577 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("artistGenreTable")]
|
|
public class ArtistGenre
|
|
{
|
|
public Artist Artist { get; set; }
|
|
|
|
[Column("artistId")] [Required] public int ArtistId { get; set; }
|
|
|
|
public Genre Genre { get; set; }
|
|
|
|
[Column("genreId")] [Required] public int? GenreId { get; set; }
|
|
|
|
[Column("id")]
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
}
|
|
} |