CRUD für Libraries erstellt

This commit is contained in:
BuildTools committed 2024-06-26 20:35:43 +02:00
1 parent 620d3794a6
commit 4fe401e360
8 files changed
+409 -3

No files matched your search

+4 -2
View File
@@ -1,13 +1,15 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace songrequests_blazor.Data
{
public class Library
{
public int Id { get; set; }
[Required(ErrorMessage = "Der Name fehlt")]
public string Name { get; set; } = null!;
public List<Song>? Songs { get; set; }
public List<string>? ScanPaths { get; set; }
public List<string>? ScanPaths { get; set; }
public LibraryType Type { get; set; }
[Column("Sessions_ID")]