35 lines
867 B
C#
35 lines
867 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 bool HasCover { get; set; }
|
|
public string Path { 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();
|
|
|
|
}
|
|
}
|