您目前尚未登陆,请选择【登陆】或【注册
首页->博客论坛->博客源代码(课程设计,3层架构)>>App-Code/liuyan.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:文件类型 MVCBlog/App_Code/liuyan.cs打开代码结构图
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Web; 5using System.Web.Security; 6using System.Web.UI; 7using System.Web.UI.WebControls; 8using System.Web.UI.WebControls.WebParts; 9using System.Web.UI.HtmlControls; 10using System.Data.SqlClient; 11 12/// <summary> 13/// liuyan 的摘要说明 14/// </summary> 15public 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
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:博客源代码(课程设计,3层架构)
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号