温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:
MVCBlog/App_Code/liuyan.cs,打开代码结构图
MVCBlog/App_Code/liuyan.cs,打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Web; 5
using System.Web.Security; 6
using System.Web.UI; 7
using System.Web.UI.WebControls; 8
using System.Web.UI.WebControls.WebParts; 9
using System.Web.UI.HtmlControls; 10
using System.Data.SqlClient; 11
12
/// <summary> 13
/// liuyan 的摘要说明 14
/// </summary> 15
public class liuyan 16
{ 17
private string _id;//ID 18
private string _Author;//作者 19
private string _content;//留言内容 20
private string _huifu;//回复 21
private DateTime _time;//发表时间 22
private DateTime _huifutime;//回复时间 23
public string id 24
{ 25
get{return this._id;} 26
set{this._id=value;} 27
} 28
public string author 29
{ 30
get{return this._Author;} 31
set{this._Author=value;} 32
} 33
public string content 34
{ 35
get{return this._content;} 36
set{this._content=value;} 37
} 38
public DateTime time 39
{ 40
get{return this._time;} 41
set{this._time=value;} 42
} 43
public DateTime huifutime 44
{ 45
get{return this._huifutime;} 46
set{this._huifutime=value;} 47
} 48
public string huifu 49
{ 50
get { return this._huifu; } 51
set { this._huifu = value; } 52
} 53
public liuyan() 54
{ } 55
public liuyan(SqlDataReader dr) 56
{ 57
this._id = dr["ID"].ToString(); 58
this._Author = dr["CNAME"].ToString(); 59
this._content = dr["LIUYAN_Content"].ToString(); 60
this._huifu = dr["LIUYAN_HUIFU"].ToString(); 61
this._huifutime = Convert.ToDateTime(dr["LIUYAN_HUIFU_TIME"]); 62
this._time = Convert.ToDateTime(dr["LIUYAN_TIME"]); 63
} 64
65
} 66







}