mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 07:29:00 -07:00
30 lines
613 B
C#
30 lines
613 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace RadicadeServer.RecNet.DB
|
|
{
|
|
public class PlaylistDB
|
|
{
|
|
[Key]
|
|
public long PlaylistId { get; set; }
|
|
|
|
public string Keywords { get; set; } = string.Empty;
|
|
|
|
public string[] GetKeywords()
|
|
{
|
|
return Keywords.Split(',', StringSplitOptions.TrimEntries);
|
|
}
|
|
}
|
|
|
|
public class TagDB
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long TagId { get; set; }
|
|
|
|
public string Tag { get; set; } = string.Empty;
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
}
|
|
}
|