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
//------------------------------------------------------------------------------
// <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>
/// 实体类DictType 。(属性说明自动提取数据库字段的描述信息)
/// </summary>
[Serializable]
public class DictType : Entity
{
public DictType():base("DictType") {}
#region Model
private Guid _TypeID;
private Guid _ParentID;
private string _TypeName;
private string _Descript;
private bool _IsDel;
/// <summary>
///
/// </summary>
public Guid TypeID
{
get{ return _TypeID; }
set
{
this.OnPropertyValueChange(_.TypeID,_TypeID,value);
this._TypeID=value;
}
}
/// <summary>
///
/// </summary>
public Guid ParentID
{
get{ return _ParentID; }
set
{
this.OnPropertyValueChange(_.ParentID,_ParentID,value);
this._ParentID=value;
}
}
/// <summary>
///
/// </summary>
public string TypeName
{
get{ return _TypeName; }
set
{
this.OnPropertyValueChange(_.TypeName,_TypeName,value);
this._TypeName=value;
}
}
/// <summary>
///
/// </summary>
public string Descript
{
get{ return _Descript; }
set
{
this.OnPropertyValueChange(_.Descript,_Descript,value);
this._Descript=value;
}
}
/// <summary>
///
/// </summary>
public bool IsDel
{
get{ return _IsDel; }
set
{
this.OnPropertyValueChange(_.IsDel,_IsDel,value);
this._IsDel=value;
}
}
#endregion
#region Method
/// <summary>
/// 获取实体中的主键列
/// </summary>
public override Field[] GetPrimaryKeyFields()
{
return new Field[] {
_.TypeID};
}
/// <summary>
/// 获取列信息
/// </summary>
public override Field[] GetFields()
{
return new Field[] {
_.TypeID,
_.ParentID,
_.TypeName,
_.Descript,
_.IsDel};
}
/// <summary>
/// 获取值信息
/// </summary>
public override object[] GetValues()
{
return new object[] {
this._TypeID,
this._ParentID,
this._TypeName,
this._Descript,
this._IsDel};
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(IDataReader reader)
{
this._TypeID = DataUtils.ConvertValue<Guid>(reader["TypeID"]);
this._ParentID = DataUtils.ConvertValue<Guid>(reader["ParentID"]);
this._TypeName = DataUtils.ConvertValue<string>(reader["TypeName"]);
this._Descript = DataUtils.ConvertValue<string>(reader["Descript"]);
this._IsDel = DataUtils.ConvertValue<bool>(reader["IsDel"]);
}
/// <summary>
/// 给当前实体赋值
/// </summary>
public override void SetPropertyValues(DataRow row)
{
this._TypeID = DataUtils.ConvertValue<Guid>(row["TypeID"]);
this._ParentID = DataUtils.ConvertValue<Guid>(row["ParentID"]);
this._TypeName = DataUtils.ConvertValue<string>(row["TypeName"]);
this._Descript = DataUtils.ConvertValue<string>(row["Descript"]);
this._IsDel = DataUtils.ConvertValue<bool>(row["IsDel"]);
}
#endregion
#region _Field
/// <summary>
/// 字段信息
/// </summary>
public class _
{
/// <summary>
/// *
/// </summary>
public readonly static Field All = new Field("*","DictType");
/// <summary>
///
/// </summary>
public readonly static Field TypeID = new Field("TypeID","DictType","TypeID");
/// <summary>
///
/// </summary>
public readonly static Field ParentID = new Field("ParentID","DictType","ParentID");
/// <summary>
///
/// </summary>
public readonly static Field TypeName = new Field("TypeName","DictType","TypeName");
/// <summary>
///
/// </summary>
public readonly static Field Descript = new Field("Descript","DictType","Descript");
/// <summary>
///
/// </summary>
public readonly static Field IsDel = new Field("IsDel","DictType","IsDel");
}
#endregion
}
}