#62 golha.co.uk musuic catalogue db models

This commit is contained in:
Hamid Reza Mohammadi 2021-01-11 10:51:05 +03:30
parent 26e6483c7b
commit 50f4dfa40c
3 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMuseum.Models.MusicCatalogue
{
/// <summary>
/// http://www.golha.co.uk offline catalogue
/// </summary>
public class GolhaCollection
{
/// <summary>
/// id
/// </summary>
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
/// <summary>
/// name
/// </summary>
public string Name { get; set; }
/// <summary>
/// url
/// </summary>
public string Url { get { return $"http://www.golha.co.uk/fa/search_basic/{Id}"; } }
}
}

View File

@ -0,0 +1,44 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RMuseum.Models.MusicCatalogue
{
public class GolhaProgram
{
/// <summary>
/// id
/// </summary>
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
/// <summary>
/// GolhaCollection Id
/// </summary>
public int GolhaCollectionId { get; set; }
/// <summary>
/// GolhaCollection
/// </summary>
public GolhaCollection GolhaCollection { get; set; }
/// <summary>
/// title
/// </summary>
public string Title { get; set; }
/// <summary>
/// program order
/// </summary>
public int ProgramOrder { get; set; }
/// <summary>
/// url
/// </summary>
public string Url { get; set; }
/// <summary>
/// mp3
/// </summary>
public string Mp3 { get; set; }
}
}

View File

@ -0,0 +1,35 @@
namespace RMuseum.Models.MusicCatalogue
{
public class GolhaTrack
{
/// <summary>
/// id
/// </summary>
public int Id { get; set; }
/// <summary>
/// GolhaProgram Id
/// </summary>
public int GolhaProgramId { get; set; }
/// <summary>
/// GolhaProgram
/// </summary>
public GolhaProgram GolhaProgram { get; set; }
/// <summary>
/// track no
/// </summary>
public int TrackNo { get; set; }
/// <summary>
/// timing
/// </summary>
public string Timing { get; set; }
/// <summary>
/// title
/// </summary>
public string Title { get; set; }
}
}