contentviewproviders.cs

来自「具有一般blog的相册、文章、作品等功能程序结构也比较清晰采用三层结构开发(利用」· CS 代码 · 共 84 行

CS
84
字号
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 + =
减小字号Ctrl + -
显示快捷键?