2023-11-29 20:58:13 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2023-12-12 16:23:04 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2023-11-29 20:58:13 +04:00
|
|
|
|
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;
|
2023-11-29 20:58:13 +04:00
|
|
|
|
|
|
|
|
|
[Required]
|
2023-12-12 16:23:04 +04:00
|
|
|
|
public string PicturePath { get; set; } = string.Empty;
|
2023-11-29 20:58:13 +04:00
|
|
|
|
[Required]
|
2023-12-12 16:23:04 +04:00
|
|
|
|
public string Author { get; set; } = string.Empty;
|
2023-11-29 20:58:13 +04:00
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime PublicationDate { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|