📄 book.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
public class Book
{
public Book()
{
bookType = new BookType();
pub = new Publishers();
}
BookType bookType;
/// <summary>
/// 书籍类别信息
/// </summary>
public BookType BookType
{
get { return bookType; }
set { bookType = value; }
}
Publishers pub;
/// <summary>
/// 出版社信息
/// </summary>
public Publishers Pub
{
get { return pub; }
set { pub = value; }
}
int id;
/// <summary>
/// 书籍编号
/// </summary>
public int Id
{
get { return id; }
set { id = value; }
}
string title;//
/// <summary>
/// 书名
/// </summary>
public string Title
{
get { return title; }
set { title = value; }
}
int bookTypeId;//
/// <summary>
/// 书的类型编号
/// </summary>
public int BookTypeId
{
get { return bookTypeId; }
set { bookTypeId = value; }
}
string author;//
/// <summary>
/// 作者
/// </summary>
public string Author
{
get { return author; }
set { author = value; }
}
DateTime publishDate;//
/// <summary>
/// 出版日期
/// </summary>
public DateTime PublishDate
{
get { return publishDate; }
set { publishDate = value; }
}
string iSBN;
public string ISBN
{
get { return iSBN; }
set { iSBN = value; }
}
int wordsCount;//
/// <summary>
/// 书籍大概字数
/// </summary>
public int WordsCount
{
get { return wordsCount; }
set { wordsCount = value; }
}
double unitPrice;//
/// <summary>
/// 单价
/// </summary>
public double UnitPrice
{
get { return unitPrice; }
set { unitPrice = value; }
}
string contentDescription;//
/// <summary>
/// 内容介绍
/// </summary>
public string ContentDescription
{
get { return contentDescription; }
set { contentDescription = value; }
}
string authorDescription;//
/// <summary>
/// 作者介绍
/// </summary>
public string AuthorDescription
{
get { return authorDescription; }
set { authorDescription = value; }
}
string editorComment;//
/// <summary>
/// 编辑
/// </summary>
public string EditorComment
{
get { return editorComment; }
set { editorComment = value; }
}
string tOC;
/// <summary>
/// 书的目录
/// </summary>
public string TOC
{
get { return tOC; }
set { tOC = value; }
}
int clicks;//
/// <summary>
/// 点击率
/// </summary>
public int Clicks
{
get { return clicks; }
set { clicks = value; }
}
int publisherId;//
/// <summary>
/// 出版社编号
/// </summary>
public int PublisherId
{
get { return publisherId; }
set { publisherId = value; }
}
string img;//
/// <summary>
/// 图片路径
/// </summary>
public string Img
{
get { return img; }
set { img = value; }
}
string simplePY;//
/// <summary>
/// 书籍简拼
/// </summary>
public string SimplePY
{
get { return simplePY; }
set { simplePY = value; }
}
int pj;//是否推荐
/// <summary>
/// 评论数
/// </summary>
public int Pj
{
get { return pj; }
set { pj = value; }
}
int typeId;
/// <summary>
/// 类别编号
/// </summary>
public int TypeId
{
get { return typeId; }
set { typeId = value; }
}
int tuijian = 0;
/// <summary>
/// 是否推荐
/// </summary>
public int Tuijian
{
get { return tuijian; }
set { tuijian = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -