27 lines
576 B
C#
27 lines
576 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
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]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string PicturePath { get; set; } = string.Empty;
|
|
[Required]
|
|
public string Author { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public DateTime PublicationDate { get; set; }
|
|
}
|
|
}
|