Cleaned code

This commit is contained in:
2026-03-17 10:27:53 +01:00
parent 15075eb051
commit d202d1541d
55 changed files with 306 additions and 264 deletions

View File

@@ -4,12 +4,12 @@ namespace BookHive.Models;
public class Author
{
[Key]public int Id { get; set; }
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? FirstName { get; set; }
[Required, MaxLength(100)] public string? LastName { get; set; }
[MaxLength(2000)] public string? Biography { get; set; }
[Required] public DateOnly BirthDate { get; set; }
[Required, MaxLength(60)] public string? Nationality { get; set; }
public List<Book>? Books { get; set; }
}