commentinfo.cs
来自「完全网站系统」· CS 代码 · 共 76 行
CS
76 行
namespace ASPNET.StarterKit.Communities {
using System;
using System.Data.SqlClient;
//*********************************************************************
//
// CommentInfo Class
//
// Represents all information about a particular comment.
//
//*********************************************************************
public class CommentInfo : ContentInfo {
string _text;
int _replyID;
int _parentID;
//*********************************************************************
//
// CommentInfo Constructor
//
// Initializes comment information.
//
//*********************************************************************
public CommentInfo(SqlDataReader dr) : base(dr) {
_text = (string)dr["Comment_Text"];
_parentID = (int)dr["ContentPage_ParentID"];
_replyID = (int)dr["ContentPage_ReplyID"];
}
//*********************************************************************
//
// Text Property
//
// Represents the body text of the comment.
//
//*********************************************************************
public string Text {
get {return _text;}
set {_text = value;}
}
//*********************************************************************
//
// ReplyID Property
//
// Represents the immediate parent of the comment.
//
//*********************************************************************
public int ReplyID {
get {return _replyID;}
set {_replyID = value;}
}
public int ParentID {
get {return _parentID;}
set {_parentID = value;}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?