comment.cs

来自「asp.net 做的个人图书站点应用」· CS 代码 · 共 42 行

CS
42
字号
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Comment 评论类
/// </summary>
public class Comment
{
    private int commentid;
    private string userid;
    private int bookid;
    private DateTime commenttime;
    private string commentcontext;
    private string caption;

	public Comment(int commentid,string userid,int bookid,DateTime commenttime,string commentcontext,string caption)

	{
        this.commentid = commentid;
        this.userid = userid;
        this.bookid = bookid;
        this.commenttime = commenttime;
        this.commentcontext = commentcontext;
        this.caption = caption;

	}
    public int CommentID { get { return commentid; } }
    public string UserID { get { return userid; } }
    public int BookID { get { return bookid; } }
    public DateTime CommentTime { get { return commenttime; } }
    public string CommentContext { get { return commentcontext; } }
    public string Caption { get { return caption; } }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?