Files
Assignment6/6/Models/Book.cs
Chris 2be781c3b1
Some checks failed
Build and Push Docker Image / docker (push) Failing after 18s
repo rework
2026-04-08 12:36:00 +00:00

22 lines
453 B
C#

using System.ComponentModel.DataAnnotations;
namespace Example.Models
{
public class Book
{
public Book() {}
public int Id { get; set; }
[Required]
[StringLength(200)]
public string Title { get; set; } = string.Empty;
[StringLength(1000)]
public string Summary { get; set; } = string.Empty;
[DataType(DataType.Date)]
public DateTime Published { get; set; }
}
}