📄 book.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace MyBookShop.Models
{
[Serializable()]
public class Book
{
private int id;
private Publisher publisher;
private Category category;
private string title = String.Empty;
private string author = String.Empty;
private DateTime publishDate;
private string iSBN = String.Empty;
private int wordsCount;
private decimal unitPrice;
private string contentDescription = String.Empty;
private string aurhorDescription = String.Empty;
private string editorComment = String.Empty;
private string tOC = String.Empty;
private int clicks;
public Book() { }
public int Id
{
get { return this.id; }
set { this.id = value; }
}
public Publisher Publisher
{
get { return this.publisher; }
set { this.publisher = value; }
}
public Category Category
{
get { return this.category; }
set { this.category = value; }
}
public string Title
{
get { return this.title; }
set { this.title = value; }
}
public string Author
{
get { return this.author; }
set { this.author = value; }
}
public DateTime PublishDate
{
get { return this.publishDate; }
set { this.publishDate = value; }
}
public string ISBN
{
get { return this.iSBN; }
set { this.iSBN = value; }
}
public int WordsCount
{
get { return this.wordsCount; }
set { this.wordsCount = value; }
}
public decimal UnitPrice
{
get { return this.unitPrice; }
set { this.unitPrice = value; }
}
public string ContentDescription
{
get { return this.contentDescription; }
set { this.contentDescription = value; }
}
public string AurhorDescription
{
get { return this.aurhorDescription; }
set { this.aurhorDescription = value; }
}
public string EditorComment
{
get { return this.editorComment; }
set { this.editorComment = value; }
}
public string TOC
{
get { return this.tOC; }
set { this.tOC = value; }
}
public int Clicks
{
get { return this.clicks; }
set { this.clicks = value; }
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -