📄 news.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// 封装数据实体t_News表
/// </summary>
public class News
{
private int newsID;
public int NewsID
{
get { return newsID; }
set { newsID = value; }
}
private string newsTitle;
public string NewsTitle
{
get { return newsTitle; }
set { newsTitle = value; }
}
private int classID;
public int ClassID
{
get { return classID; }
set { classID = value; }
}
private string newsDate;
public string NewsDate
{
get { return newsDate; }
set { newsDate = value; }
}
private string newsKey;
public string NewsKey
{
get { return newsKey; }
set { newsKey = value; }
}
private string newsSource;
public string NewsSource
{
get { return newsSource; }
set { newsSource = value; }
}
private string newsContent;
public string NewsContent
{
get { return newsContent; }
set { newsContent = value; }
}
private int userID;
public int UserID
{
get { return userID; }
set { userID = value; }
}
private int hits;
public int Hits
{
get { return hits; }
set { hits = value; }
}
private int monthHits;
public int MonthHits
{
get { return monthHits; }
set { monthHits = value; }
}
public News()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public News(int newsID,string newsTitle,int classID,string newsDate, string newsKey,string newsSource,string newsContent,int userID,int hits,int monthHits)
{
this.NewsID = newsID;
this.NewsTitle = newsTitle;
this.ClassID = classID;
this.NewsDate = newsDate;
this.NewsKey = newsKey;
this.NewsSource = newsSource;
this.NewsContent = NewsContent;
this.UserID = userID;
this.Hits = hits;
this.MonthHits = monthHits;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -