Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:2.0.50727.8935
// Support: http://www.cnblogs.com/huxj
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;
namespace Ces.Model
{
/// <summary>
/// 实体类GroupManage 。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public class GroupManage : Entity
{
public GroupManage():base("GroupManage") {}
#region Model
private int _LogID;
private Guid _SourceID;
private Guid _TargetGroupID;
private DateTime _PostTime;
private string _ActionDescript;
/// <summary>
///
/// </summary>
public int LogID
{
get{ return _LogID; }
set
{
this.OnPropertyValueChange(_.LogID,_LogID,value);
this._LogID=value;
}
}
/// <summary>
///
/// </summary>
public Guid SourceID
{
get{ return _SourceID; }
set
{
this.OnPropertyValueChange(_.SourceID,_SourceID,value);
this._SourceID=value;
}
}
/// <summary>
///
/// </summary>
public Guid TargetGroupID
{
get{ return _TargetGroupID; }
set
{
this.OnPropertyValueChange(_.TargetGroupID,_TargetGroupID,value);
this._TargetGroupID=value;
}
}
/// <summary>
///
/// </summary>
public DateTime PostTime
{
get{ return _PostTime; }
set
{
this.OnPropertyValueChange(_.PostTime,_PostTime,value);
this._PostTime=value;
}
}
/// <summary>
///
/// </summary>
public string ActionDescript
{
get{ return _ActionDescript; }
set
{
this.OnPropertyValueChange(_.ActionDescript,_ActionDescript,value);
this._ActionDescript=value;
}
}
#endregion
#region Method
/// <summary>
/// 获取实体中的标识列
/// </summary>
public override Field GetIdentityField()
{
return _.LogID;
}
/// <summary>
/// 获取实体中的主键列
/// </summary>
public override Field[] GetPrimaryKeyFields()
{
return new Field[] {
_.LogID};
}
/// <summary>
/// 获取列信息
/// </summary>
public override Field[] GetFields()
{
return new Field[] {
_.LogID,
_.SourceID,
_.TargetGroupID,
_.PostTime,
_.ActionDescript};
}
/// <summary>
/// 获取值信息
/// </summary>
public override object[] GetValues()
{
return new object[] {
this._LogID,
this._SourceID,
this._TargetGroupID,
this._PostTime,
this._ActionDescript};
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(IDataReader reader)
{
this._LogID = DataUtils.ConvertValue<int>(reader["LogID"]);
this._SourceID = DataUtils.ConvertValue<Guid>(reader["SourceID"]);
this._TargetGroupID = DataUtils.ConvertValue<Guid>(reader["TargetGroupID"]);
this._PostTime = DataUtils.ConvertValue<DateTime>(reader["PostTime"]);
this._ActionDescript = DataUtils.ConvertValue<string>(reader["ActionDescript"]);
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(DataRow row)
{
this._LogID = DataUtils.ConvertValue<int>(row["LogID"]);
this._SourceID = DataUtils.ConvertValue<Guid>(row["SourceID"]);
this._TargetGroupID = DataUtils.ConvertValue<Guid>(row["TargetGroupID"]);
this._PostTime = DataUtils.ConvertValue<DateTime>(row["PostTime"]);
this._ActionDescript = DataUtils.ConvertValue<string>(row["ActionDescript"]);
}
#endregion
#region _Field
/// <summary>
/// 字段信息
/// </summary>
public class _
{
/// <summary>
/// *
/// </summary>
public readonly static Field All = new Field("*","GroupManage");
/// <summary>
///
/// </summary>
public readonly static Field LogID = new Field("LogID","GroupManage","LogID");
/// <summary>
///
/// </summary>
public readonly static Field SourceID = new Field("SourceID","GroupManage","SourceID");
/// <summary>
///
/// </summary>
public readonly static Field TargetGroupID = new Field("TargetGroupID","GroupManage","TargetGroupID");
/// <summary>
///
/// </summary>
public readonly static Field PostTime = new Field("PostTime","GroupManage","PostTime");
/// <summary>
///
/// </summary>
public readonly static Field ActionDescript = new Field("ActionDescript","GroupManage","ActionDescript");
}
#endregion
}
}