Files
bibblan/Server/ViewModels/SeriesVm.cs
2025-09-11 01:26:06 +02:00

33 lines
783 B
C#

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();
}
}