📄 commentinfo.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -