KOP_Library_v5/DatabaseImplement/Models/Book.cs

26 lines
476 B
C#
Raw Permalink Normal View History

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; }
}
}