KOP_Library_v5/DatabaseImplement/Models/Book.cs

27 lines
576 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2023-12-12 16:23:04 +04:00
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseImplement.Models
{
public class Book
{
public int Id { get; set; }
[Required]
2023-12-12 16:23:04 +04:00
public string Name { get; set; } = string.Empty;
[Required]
2023-12-12 16:23:04 +04:00
public string PicturePath { get; set; } = string.Empty;
[Required]
2023-12-12 16:23:04 +04:00
public string Author { get; set; } = string.Empty;
[Required]
public DateTime PublicationDate { get; set; }
}
}