This commit is contained in:
Chris
2026-04-07 20:35:53 +02:00
parent a0e60d2a4d
commit 947b34ad13
212 changed files with 0 additions and 0 deletions

21
5/Models/Book.cs Normal file
View File

@@ -0,0 +1,21 @@
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; }
}
}