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