articleinfo.cs
来自「完全网站系统」· CS 代码 · 共 49 行
CS
49 行
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 + =
减小字号Ctrl + -
显示快捷键?