温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:myhome2009三层项目源码
当前文件:
MyHome2009/DBTask.Access2000/Entity/CommentEntity.cs[2K,2009-6-12 11:48:13],打开代码结构图
MyHome2009/DBTask.Access2000/Entity/CommentEntity.cs[2K,2009-6-12 11:48:13],打开代码结构图1/* 2
* CommentEntity.cs @Microsoft Visual Studio 2008 <.NET Framework 2.0 (or Higher)> 3
* AfritXia 4
* 2008/9/27 5
* 6
* Copyright(c) http://www.AfritXia.Net/ 7
* 8
*/ 9
10
using System; 11
12
using Net.AfritXia.Data.Mapping; 13
14
namespace Net.AfritXia.MyHome2009.DBTask.Access2000.Entity 15
{ 16
/// <summary> 17
/// 评论实体类 18
/// </summary> 19
[DataTable(Name = "myhome2009_Comment")] 20
public class CommentEntity : IEntity 21
{ 22
// 评论 ID 23
private int m_commentUID; 24
// 上级文章 ID 25
private int m_parentArticleUID; 26
// 发送用户名称 27
private string m_postUser; 28
// 发送时间 29
private DateTime m_postTime; 30
// 文本内容 31
private string m_textContent; 32
// 客户端 IP 地址 33
private string m_clientIP; 34
35
类构造器 43
44
/// <summary> 45
/// 获取或设置评论 ID 46
/// </summary> 47
[DataColumn(Name = "CommentUID")] 48
public int CommentUID 49
{ 50
get 51
{ 52
return this.m_commentUID; 53
} 54
55
set 56
{ 57
this.m_commentUID = value; 58
} 59
} 60
61
/// <summary> 62
/// 获取或设置上级文章 ID 63
/// </summary> 64
[DataColumn(Name = "ParentArticleUID")] 65
public int ParentArticleUID 66
{ 67
get 68
{ 69
return this.m_parentArticleUID; 70
} 71
72
set 73
{ 74
this.m_parentArticleUID = value; 75
} 76
} 77
78
/// <summary> 79
/// 获取或设置发送用户名称 80
/// </summary> 81
[DataColumn(Name = "PostUser")] 82
public string PostUser 83
{ 84
get 85
{ 86
return this.m_postUser; 87
} 88
89
set 90
{ 91
this.m_postUser = value; 92
} 93
} 94
95
/// <summary> 96
/// 获取或设置发送时间 97
/// </summary> 98
[DataColumn(Name = "PostTime")] 99
public DateTime PostTime 100
{ 101
get 102
{ 103
return this.m_postTime; 104
} 105
106
set 107
{ 108
this.m_postTime = value; 109
} 110
} 111
112
/// <summary> 113
/// 获取或设置文本内容 114
/// </summary> 115
[DataColumn(Name = "TextContent")] 116
public string TextContent 117
{ 118
get 119
{ 120
return this.m_textContent; 121
} 122
123
set 124
{ 125
this.m_textContent = value; 126
} 127
} 128
129
/// <summary> 130
/// 获取或设置客户端 IP 地址 131
/// </summary> 132
[DataColumn(Name = "ClientIP", IsNullable = true)] 133
public string ClientIP 134
{ 135
get 136
{ 137
return this.m_clientIP; 138
} 139
140
set 141
{ 142
this.m_clientIP = value; 143
} 144
} 145
} 146
} 147




* CommentEntity.cs @Microsoft Visual Studio 2008 <.NET Framework 2.0 (or Higher)>

