serier och taggar

This commit is contained in:
2025-09-11 01:26:06 +02:00
parent e23822b30c
commit f88c25f117
8 changed files with 242 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Bibblan.ViewModels
{
public class Tag
{
public long Id { get; set; }
public string Name { get; set; }
public int BookCount { get; set; }
}
public class ListBook
{
public long Id { get; set; }
public string Title { get; set; }
public DateTime PubDate { get; set; }
public double SeriesIndex { get; set; }
public long AuthorId { get; set; }
public string AuthorName { get; set; }
}
public class SeriesVm
{
[Column("seriesid")]
public long Id { get; set; }
[Column("seriesname")]
public string Name { get; set; }
public List<ListBook> Books { get; set; } = new();
}
}