Books.Service/Entity/BookEntity.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Books.Service.Entity
{
    public class BookEntity:BaseEntity
    {
        [MaxLength(30)]
        [Required]
        public string Name { get; set; }
        [MaxLength(30)]
        [Required]
        public string Author { get; set; }
        [MaxLength(50)]
        [Required]
        public string Image { get; set; }
        public decimal Price { get; set; }
        [MaxLength(1000)]
        
        /// <summary>
        /// 内容简介
        /// </summary>
        public string Profile { get; set; }
        public int PressId { get; set; }
        public virtual PressEntity Press { get; set; }
        public DateTime PublishDateTime { get; set; }
        /// <summary>
        /// 版次
        /// </summary>
        public int Edition { get; set; }
        /// <summary>
        /// 印次
        /// </summary>
        public int Impression { get; set; }
        [Required]
        [MaxLength(32)]
        public string ISBM { get; set; }
        public  int ClassifyId { get; set; }
        public virtual ClassifyEntity Classify { get; set; }
        public int WordCount { get; set; }
        public int PageCount { get; set; }
        public int Format { get; set; }
        public virtual ICollection<OrderDetailEntity> OrderDetail { get; set; } =new  List<OrderDetailEntity>();
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。