📄 articleinfo.cs
字号:
namespace ASPNET.StarterKit.Communities.Articles {
using System;
using System.Data.SqlClient;
//*********************************************************************
//
// ArticleInfo Class
//
// Represents all information about a particular article.
//
//*********************************************************************
public class ArticleInfo : ContentInfo {
string _bodyText;
//*********************************************************************
//
// ArticleInfo Constructor
//
// Initializes article information from a SqlDataReader.
//
//*********************************************************************
public ArticleInfo(SqlDataReader dr) : base(dr) {
if (dr["Article_Article"] != DBNull.Value)
_bodyText = (string)dr["Article_Article"];
}
//*********************************************************************
//
// BodyText Property
//
// Represents the content of an article.
//
//*********************************************************************
public string BodyText {
get {return _bodyText;}
set {_bodyText = value;}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -