23 lines
435 B
C#
23 lines
435 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Icarus.Models
|
|
{
|
|
public class Year
|
|
{
|
|
[JsonProperty("id")]
|
|
public int YearId { get; set; }
|
|
[JsonProperty("year")]
|
|
public int YearValue { get; set; }
|
|
[JsonProperty("song_count")]
|
|
[NotMapped]
|
|
public int SongCount { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public List<Song> Songs { get; set; }
|
|
}
|
|
}
|