23 lines
448 B
C#
23 lines
448 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Icarus.Models
|
|
{
|
|
public class Genre
|
|
{
|
|
[JsonProperty("id")]
|
|
public int GenreId { get; set; }
|
|
[JsonProperty("genre")]
|
|
public string GenreName { get; set; }
|
|
[JsonProperty("song_count")]
|
|
[NotMapped]
|
|
public int SongCount { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public List<Song> Songs { get; set; }
|
|
}
|
|
}
|