使用Dali生成的代码
1
// -----------------------------------------------
2
// Class: TInAccount
3
// Represents data from the T_InAccount
4
// database table.
5
//
6
// This file was generated by DaliStudio(tm)
7
// a product of Revelation Technologies, LLC
8
// www.revtechnologies.com
9
//
10
// You should modify this file to suit your needs.
11
// However, DaliStudio will overwrite your changes
12
// if you regenerate the file.
13
// -----------------------------------------------
14![]()
15
namespace Test
16
{
17
using System;
18
using Revelation.Dali;
19
20
21
/// <summary>
22
/// Represents an item from the T_InAccount database table.
23
/// </summary>
24
[DaliClass(TableName="T_InAccount")]
25
public class TInAccount : DaliObject
26
{
27
28
private string _accountCode;
29
30
private int _accYear;
31
32
private int _accMonth;
33
34
private int _sortID;
35
36
private System.Nullable<System.DateTime> _nDate;
37
38
private string _deptCode;
39
40
private string _subjectCode;
41
42
private string _direction;
43
44
private string _workerCode;
45
46
private string _workerName;
47
48
private string _iSCheck;
49
50
private string _checkWorker;
51
52
/// <summary>
53
/// Default constructor.
54
/// </summary>
55
public TInAccount()
56
{
57
this.Loading += new DaliObjectChangingEventHandler(this.TInAccount_Loading);
58
this.Loaded += new DaliObjectChangedEventHandler(this.TInAccount_Loaded);
59
this.Saving += new DaliObjectChangingEventHandler(this.TInAccount_Saving);
60
this.Saved += new DaliObjectChangedEventHandler(this.TInAccount_Saved);
61
this.Inserting += new DaliObjectChangingEventHandler(this.TInAccount_Inserting);
62
this.Inserted += new DaliObjectChangedEventHandler(this.TInAccount_Inserted);
63
this.Updating += new DaliObjectChangingEventHandler(this.TInAccount_Updating);
64
this.Updated += new DaliObjectChangedEventHandler(this.TInAccount_Updated);
65
this.Deleting += new DaliObjectChangingEventHandler(this.TInAccount_Deleting);
66
this.Deleted += new DaliObjectChangedEventHandler(this.TInAccount_Deleted);
67
this.Changed += new DaliObjectFieldChangedEventHandler(this.TInAccount_Changed);
68
this.Aborted += new EventHandler(this.TInAccount_Aborted);
69
}
70
71
/// <summary>
72
/// Sets or gets the AccountCode of the object.
73
/// </summary>
74
[DaliMember(ColumnName="AccountCode")]
75
public string AccountCode
76
{
77
get
78
{
79
return _accountCode;
80
}
81
set
82
{
83
this.SetModified("AccountCode", _accountCode, value);
84
_accountCode = value;
85
}
86
}
87
88
/// <summary>
89
/// Sets or gets the AccYear of the object.
90
/// </summary>
91
[DaliMember(ColumnName="AccYear")]
92
public int AccYear
93
{
94
get
95
{
96
return _accYear;
97
}
98
set
99
{
100
this.SetModified("AccYear", _accYear, value);
101
_accYear = value;
102
}
103
}
104
105
/// <summary>
106
/// Sets or gets the AccMonth of the object.
107
/// </summary>
108
[DaliMember(ColumnName="AccMonth")]
109
public int AccMonth
110
{
111
get
112
{
113
return _accMonth;
114
}
115
set
116
{
117
this.SetModified("AccMonth", _accMonth, value);
118
_accMonth = value;
119
}
120
}
121
122
/// <summary>
123
/// Sets or gets the SortID of the object.
124
/// </summary>
125
[DaliMember(ColumnName="SortID")]
126
public int SortID
127
{
128
get
129
{
130
return _sortID;
131
}
132
set
133
{
134
this.SetModified("SortID", _sortID, value);
135
_sortID = value;
136
}
137
}
138
139
/// <summary>
140
/// Sets or gets the NDate of the object.
141
/// This property may be null.
142
/// </summary>
143
[DaliMember(ColumnName="NDate")]
144
public System.Nullable<System.DateTime> NDate
145
{
146
get
147
{
148
return _nDate;
149
}
150
set
151
{
152
this.SetModified("NDate", _nDate, value);
153
_nDate = value;
154
}
155
}
156
157
/// <summary>
158
/// Sets or gets the DeptCode of the object.
159
/// </summary>
160
[DaliMember(ColumnName="DeptCode")]
161
public string DeptCode
162
{
163
get
164
{
165
return _deptCode;
166
}
167
set
168
{
169
this.SetModified("DeptCode", _deptCode, value);
170
_deptCode = value;
171
}
172
}
173
174
/// <summary>
175
/// Sets or gets the SubjectCode of the object.
176
/// </summary>
177
[DaliMember(ColumnName="SubjectCode")]
178
public string SubjectCode
179
{
180
get
181
{
182
return _subjectCode;
183
}
184
set
185
{
186
this.SetModified("SubjectCode", _subjectCode, value);
187
_subjectCode = value;
188
}
189
}
190
191
/// <summary>
192
/// Sets or gets the Direction of the object.
193
/// </summary>
194
[DaliMember(ColumnName="Direction")]
195
public string Direction
196
{
197
get
198
{
199
return _direction;
200
}
201
set
202
{
203
this.SetModified("Direction", _direction, value);
204
_direction = value;
205
}
206
}
207
208
/// <summary>
209
/// Sets or gets the WorkerCode of the object.
210
/// </summary>
211
[DaliMember(ColumnName="WorkerCode")]
212
public string WorkerCode
213
{
214
get
215
{
216
return _workerCode;
217
}
218
set
219
{
220
this.SetModified("WorkerCode", _workerCode, value);
221
_workerCode = value;
222
}
223
}
224
225
/// <summary>
226
/// Sets or gets the WorkerName of the object.
227
/// </summary>
228
[DaliMember(ColumnName="WorkerName")]
229
public string WorkerName
230
{
231
get
232
{
233
return _workerName;
234
}
235
set
236
{
237
this.SetModified("WorkerName", _workerName, value);
238
_workerName = value;
239
}
240
}
241
242
/// <summary>
243
/// Sets or gets the ISCheck of the object.
244
/// </summary>
245
[DaliMember(ColumnName="ISCheck")]
246
public string ISCheck
247
{
248
get
249
{
250
return _iSCheck;
251
}
252
set
253
{
254
this.SetModified("ISCheck", _iSCheck, value);
255
_iSCheck = value;
256
}
257
}
258
259
/// <summary>
260
/// Sets or gets the CheckWorker of the object.
261
/// </summary>
262
[DaliMember(ColumnName="CheckWorker")]
263
public string CheckWorker
264
{
265
get
266
{
267
return _checkWorker;
268
}
269
set
270
{
271
this.SetModified("CheckWorker", _checkWorker, value);
272
_checkWorker = value;
273
}
274
}
275
276
/// <summary>
277
/// Called by Dali when the object is Loading.
278
/// </summary>
279
private void TInAccount_Loading(object sender, DaliObjectChangingEventArgs e)
280
{
281
}
282
283
/// <summary>
284
/// Called by Dali when the object is Loaded.
285
/// </summary>
286
private void TInAccount_Loaded(object sender, DaliObjectChangedEventArgs e)
287
{
288
}
289
290
/// <summary>
291
/// Called by Dali when the object is Saving.
292
/// </summary>
293
private void TInAccount_Saving(object sender, DaliObjectChangingEventArgs e)
294
{
295
}
296
297
/// <summary>
298
/// Called by Dali when the object is Saved.
299
/// </summary>
300
private void TInAccount_Saved(object sender, DaliObjectChangedEventArgs e)
301
{
302
}
303
304
/// <summary>
305
/// Called by Dali when the object is Inserting.
306
/// </summary>
307
private void TInAccount_Inserting(object sender, DaliObjectChangingEventArgs e)
308
{
309
}
310
311
/// <summary>
312
/// Called by Dali when the object is Inserted.
313
/// </summary>
314
private void TInAccount_Inserted(object sender, DaliObjectChangedEventArgs e)
315
{
316
}
317
318
/// <summary>
319
/// Called by Dali when the object is Updating.
320
/// </summary>
321
private void TInAccount_Updating(object sender, DaliObjectChangingEventArgs e)
322
{
323
}
324
325
/// <summary>
326
/// Called by Dali when the object is Updated.
327
/// </summary>
328
private void TInAccount_Updated(object sender, DaliObjectChangedEventArgs e)
329
{
330
}
331
332
/// <summary>
333
/// Called by Dali when the object is Deleting.
334
/// </summary>
335
private void TInAccount_Deleting(object sender, DaliObjectChangingEventArgs e)
336
{
337
}
338
339
/// <summary>
340
/// Called by Dali when the object is Deleted.
341
/// </summary>
342
private void TInAccount_Deleted(object sender, DaliObjectChangedEventArgs e)
343
{
344
}
345
346
/// <summary>
347
/// Called by Dali when the object is Changed.
348
/// </summary>
349
private void TInAccount_Changed(object sender, DaliObjectFieldChangedEventArgs e)
350
{
351
}
352
353
/// <summary>
354
/// Called by Dali when the current database operation on the object is aborted.
355
/// </summary>
356
private void TInAccount_Aborted(object sender, EventArgs e)
357
{
358
}
359
}
360
}
361![]()

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

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

可以看一下我用它自带的代码生成工具生成的代码,再和现在的ORM对比一下你就会发现有可取之处。