mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user