📄 contentviewproviders.cs
字号:
using System;
using System.Data;
using liuwei.FrameWork.DB;
using System.Xml.Serialization;
namespace liuwei.FrameWork.Providers
{
[Serializable]
/// <summary>
/// ContentViewProviders 的摘要说明。
/// 将数据库数据转化为类内部属性。
/// </summary>
public class ContentViewProviders
{
# region 内部属性
private string _Content;
private string _Title;
private DateTime _PubTime;
private int _PostID;
private bool _AllowComment;
private int _CommentCount;
private int _ViewCount;
# endregion
public ContentViewProviders()
{
//
// TODO: 在此处添加构造函数逻辑
//
//IDataReader DataProviders
}
[XmlAttribute("_newsContent")]
public string Content
{
get {return this._Content;}
set {this._Content = value;}
}
[XmlAttribute("_Title")]
public string Title
{
get {return this._Title;}
set {this._Title = value;}
}
[XmlAttribute("_PubTime")]
public DateTime PubTime
{
get {return this._PubTime;}
set {this._PubTime = value;}
}
[XmlAttribute("_PostID")]
public int PostID
{
get {return this._PostID;}
set {this._PostID = value;}
}
[XmlAttribute("_AllowComment")]
public bool AllowComment
{
get {return this._AllowComment;}
set {this._AllowComment = value;}
}
[XmlAttribute("_CommentCount")]
public int CommentCount
{
get {return this._CommentCount;}
set {this._CommentCount = value;}
}
[XmlAttribute("_ViewCount")]
public int ViewCount
{
get {return this._ViewCount;}
set {this._ViewCount = value;}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -