使用Dali生成的代码

  1 None.gif //  -----------------------------------------------
  2 None.gif //  Class: TInAccount
  3 None.gif //  Represents data from the T_InAccount
  4 None.gif //  database table.
  5 None.gif //  
  6 None.gif //  This file was generated by DaliStudio(tm) 
  7 None.gif //  a product of Revelation Technologies, LLC 
  8 None.gif //  www.revtechnologies.com 
  9 None.gif //  
 10 None.gif //  You should modify this file to suit your needs. 
 11 None.gif //  However, DaliStudio will overwrite your changes 
 12 None.gif //  if you regenerate the file. 
 13 None.gif //  ----------------------------------------------- 
 14 None.gif
 15 None.gif namespace  Test
 16 ExpandedBlockStart.gifContractedBlock.gif dot.gif {
 17InBlock.gif    using System;
 18InBlock.gif    using Revelation.Dali;
 19InBlock.gif    
 20InBlock.gif    
 21ExpandedSubBlockStart.gifContractedSubBlock.gif    /**//// <summary>
 22InBlock.gif    /// Represents an item from the T_InAccount database table.
 23ExpandedSubBlockEnd.gif    /// </summary>
 24InBlock.gif    [DaliClass(TableName="T_InAccount")]
 25InBlock.gif    public class TInAccount : DaliObject
 26ExpandedSubBlockStart.gifContractedSubBlock.gif    dot.gif{
 27InBlock.gif        
 28InBlock.gif        private string _accountCode;
 29InBlock.gif        
 30InBlock.gif        private int _accYear;
 31InBlock.gif        
 32InBlock.gif        private int _accMonth;
 33InBlock.gif        
 34InBlock.gif        private int _sortID;
 35InBlock.gif        
 36InBlock.gif        private System.Nullable<System.DateTime> _nDate;
 37InBlock.gif        
 38InBlock.gif        private string _deptCode;
 39InBlock.gif        
 40InBlock.gif        private string _subjectCode;
 41InBlock.gif        
 42InBlock.gif        private string _direction;
 43InBlock.gif        
 44InBlock.gif        private string _workerCode;
 45InBlock.gif        
 46InBlock.gif        private string _workerName;
 47InBlock.gif        
 48InBlock.gif        private string _iSCheck;
 49InBlock.gif        
 50InBlock.gif        private string _checkWorker;
 51InBlock.gif        
 52ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
 53InBlock.gif        /// Default constructor.
 54ExpandedSubBlockEnd.gif        /// </summary>
 55InBlock.gif        public TInAccount()
 56ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
 57InBlock.gif            this.Loading += new DaliObjectChangingEventHandler(this.TInAccount_Loading);
 58InBlock.gif            this.Loaded += new DaliObjectChangedEventHandler(this.TInAccount_Loaded);
 59InBlock.gif            this.Saving += new DaliObjectChangingEventHandler(this.TInAccount_Saving);
 60InBlock.gif            this.Saved += new DaliObjectChangedEventHandler(this.TInAccount_Saved);
 61InBlock.gif            this.Inserting += new DaliObjectChangingEventHandler(this.TInAccount_Inserting);
 62InBlock.gif            this.Inserted += new DaliObjectChangedEventHandler(this.TInAccount_Inserted);
 63InBlock.gif            this.Updating += new DaliObjectChangingEventHandler(this.TInAccount_Updating);
 64InBlock.gif            this.Updated += new DaliObjectChangedEventHandler(this.TInAccount_Updated);
 65InBlock.gif            this.Deleting += new DaliObjectChangingEventHandler(this.TInAccount_Deleting);
 66InBlock.gif            this.Deleted += new DaliObjectChangedEventHandler(this.TInAccount_Deleted);
 67InBlock.gif            this.Changed += new DaliObjectFieldChangedEventHandler(this.TInAccount_Changed);
 68InBlock.gif            this.Aborted += new EventHandler(this.TInAccount_Aborted);
 69ExpandedSubBlockEnd.gif        }

 70InBlock.gif        
 71ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
 72InBlock.gif        /// Sets or gets the AccountCode of the object.
 73ExpandedSubBlockEnd.gif        /// </summary>
 74InBlock.gif        [DaliMember(ColumnName="AccountCode")]
 75InBlock.gif        public string AccountCode
 76ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
 77InBlock.gif            get
 78ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
 79InBlock.gif                return _accountCode;
 80ExpandedSubBlockEnd.gif            }

 81InBlock.gif            set
 82ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
 83InBlock.gif                this.SetModified("AccountCode", _accountCode, value);
 84InBlock.gif                _accountCode = value;
 85ExpandedSubBlockEnd.gif            }

 86ExpandedSubBlockEnd.gif        }

 87InBlock.gif        
 88ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
 89InBlock.gif        /// Sets or gets the AccYear of the object.
 90ExpandedSubBlockEnd.gif        /// </summary>
 91InBlock.gif        [DaliMember(ColumnName="AccYear")]
 92InBlock.gif        public int AccYear
 93ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
 94InBlock.gif            get
 95ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
 96InBlock.gif                return _accYear;
 97ExpandedSubBlockEnd.gif            }

 98InBlock.gif            set
 99ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
100InBlock.gif                this.SetModified("AccYear", _accYear, value);
101InBlock.gif                _accYear = value;
102ExpandedSubBlockEnd.gif            }

103ExpandedSubBlockEnd.gif        }

104InBlock.gif        
105ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
106InBlock.gif        /// Sets or gets the AccMonth of the object.
107ExpandedSubBlockEnd.gif        /// </summary>
108InBlock.gif        [DaliMember(ColumnName="AccMonth")]
109InBlock.gif        public int AccMonth
110ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
111InBlock.gif            get
112ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
113InBlock.gif                return _accMonth;
114ExpandedSubBlockEnd.gif            }

115InBlock.gif            set
116ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
117InBlock.gif                this.SetModified("AccMonth", _accMonth, value);
118InBlock.gif                _accMonth = value;
119ExpandedSubBlockEnd.gif            }

120ExpandedSubBlockEnd.gif        }

121InBlock.gif        
122ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
123InBlock.gif        /// Sets or gets the SortID of the object.
124ExpandedSubBlockEnd.gif        /// </summary>
125InBlock.gif        [DaliMember(ColumnName="SortID")]
126InBlock.gif        public int SortID
127ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
128InBlock.gif            get
129ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
130InBlock.gif                return _sortID;
131ExpandedSubBlockEnd.gif            }

132InBlock.gif            set
133ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
134InBlock.gif                this.SetModified("SortID", _sortID, value);
135InBlock.gif                _sortID = value;
136ExpandedSubBlockEnd.gif            }

137ExpandedSubBlockEnd.gif        }

138InBlock.gif        
139ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
140InBlock.gif        /// Sets or gets the NDate of the object.
141InBlock.gif        /// This property may be null.
142ExpandedSubBlockEnd.gif        /// </summary>
143InBlock.gif        [DaliMember(ColumnName="NDate")]
144InBlock.gif        public System.Nullable<System.DateTime> NDate
145ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
146InBlock.gif            get
147ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
148InBlock.gif                return _nDate;
149ExpandedSubBlockEnd.gif            }

150InBlock.gif            set
151ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
152InBlock.gif                this.SetModified("NDate", _nDate, value);
153InBlock.gif                _nDate = value;
154ExpandedSubBlockEnd.gif            }

155ExpandedSubBlockEnd.gif        }

156InBlock.gif        
157ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
158InBlock.gif        /// Sets or gets the DeptCode of the object.
159ExpandedSubBlockEnd.gif        /// </summary>
160InBlock.gif        [DaliMember(ColumnName="DeptCode")]
161InBlock.gif        public string DeptCode
162ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
163InBlock.gif            get
164ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
165InBlock.gif                return _deptCode;
166ExpandedSubBlockEnd.gif            }

167InBlock.gif            set
168ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
169InBlock.gif                this.SetModified("DeptCode", _deptCode, value);
170InBlock.gif                _deptCode = value;
171ExpandedSubBlockEnd.gif            }

172ExpandedSubBlockEnd.gif        }

173InBlock.gif        
174ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
175InBlock.gif        /// Sets or gets the SubjectCode of the object.
176ExpandedSubBlockEnd.gif        /// </summary>
177InBlock.gif        [DaliMember(ColumnName="SubjectCode")]
178InBlock.gif        public string SubjectCode
179ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
180InBlock.gif            get
181ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
182InBlock.gif                return _subjectCode;
183ExpandedSubBlockEnd.gif            }

184InBlock.gif            set
185ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
186InBlock.gif                this.SetModified("SubjectCode", _subjectCode, value);
187InBlock.gif                _subjectCode = value;
188ExpandedSubBlockEnd.gif            }

189ExpandedSubBlockEnd.gif        }

190InBlock.gif        
191ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
192InBlock.gif        /// Sets or gets the Direction of the object.
193ExpandedSubBlockEnd.gif        /// </summary>
194InBlock.gif        [DaliMember(ColumnName="Direction")]
195InBlock.gif        public string Direction
196ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
197InBlock.gif            get
198ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
199InBlock.gif                return _direction;
200ExpandedSubBlockEnd.gif            }

201InBlock.gif            set
202ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
203InBlock.gif                this.SetModified("Direction", _direction, value);
204InBlock.gif                _direction = value;
205ExpandedSubBlockEnd.gif            }

206ExpandedSubBlockEnd.gif        }

207InBlock.gif        
208ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
209InBlock.gif        /// Sets or gets the WorkerCode of the object.
210ExpandedSubBlockEnd.gif        /// </summary>
211InBlock.gif        [DaliMember(ColumnName="WorkerCode")]
212InBlock.gif        public string WorkerCode
213ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
214InBlock.gif            get
215ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
216InBlock.gif                return _workerCode;
217ExpandedSubBlockEnd.gif            }

218InBlock.gif            set
219ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
220InBlock.gif                this.SetModified("WorkerCode", _workerCode, value);
221InBlock.gif                _workerCode = value;
222ExpandedSubBlockEnd.gif            }

223ExpandedSubBlockEnd.gif        }

224InBlock.gif        
225ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
226InBlock.gif        /// Sets or gets the WorkerName of the object.
227ExpandedSubBlockEnd.gif        /// </summary>
228InBlock.gif        [DaliMember(ColumnName="WorkerName")]
229InBlock.gif        public string WorkerName
230ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
231InBlock.gif            get
232ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
233InBlock.gif                return _workerName;
234ExpandedSubBlockEnd.gif            }

235InBlock.gif            set
236ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
237InBlock.gif                this.SetModified("WorkerName", _workerName, value);
238InBlock.gif                _workerName = value;
239ExpandedSubBlockEnd.gif            }

240ExpandedSubBlockEnd.gif        }

241InBlock.gif        
242ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
243InBlock.gif        /// Sets or gets the ISCheck of the object.
244ExpandedSubBlockEnd.gif        /// </summary>
245InBlock.gif        [DaliMember(ColumnName="ISCheck")]
246InBlock.gif        public string ISCheck
247ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
248InBlock.gif            get
249ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
250InBlock.gif                return _iSCheck;
251ExpandedSubBlockEnd.gif            }

252InBlock.gif            set
253ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
254InBlock.gif                this.SetModified("ISCheck", _iSCheck, value);
255InBlock.gif                _iSCheck = value;
256ExpandedSubBlockEnd.gif            }

257ExpandedSubBlockEnd.gif        }

258InBlock.gif        
259ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
260InBlock.gif        /// Sets or gets the CheckWorker of the object.
261ExpandedSubBlockEnd.gif        /// </summary>
262InBlock.gif        [DaliMember(ColumnName="CheckWorker")]
263InBlock.gif        public string CheckWorker
264ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
265InBlock.gif            get
266ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
267InBlock.gif                return _checkWorker;
268ExpandedSubBlockEnd.gif            }

269InBlock.gif            set
270ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
271InBlock.gif                this.SetModified("CheckWorker", _checkWorker, value);
272InBlock.gif                _checkWorker = value;
273ExpandedSubBlockEnd.gif            }

274ExpandedSubBlockEnd.gif        }

275InBlock.gif        
276ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
277InBlock.gif        /// Called by Dali when the object is Loading.
278ExpandedSubBlockEnd.gif        /// </summary>
279InBlock.gif        private void TInAccount_Loading(object sender, DaliObjectChangingEventArgs e)
280ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
281ExpandedSubBlockEnd.gif        }

282InBlock.gif        
283ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
284InBlock.gif        /// Called by Dali when the object is Loaded.
285ExpandedSubBlockEnd.gif        /// </summary>
286InBlock.gif        private void TInAccount_Loaded(object sender, DaliObjectChangedEventArgs e)
287ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
288ExpandedSubBlockEnd.gif        }

289InBlock.gif        
290ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
291InBlock.gif        /// Called by Dali when the object is Saving.
292ExpandedSubBlockEnd.gif        /// </summary>
293InBlock.gif        private void TInAccount_Saving(object sender, DaliObjectChangingEventArgs e)
294ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
295ExpandedSubBlockEnd.gif        }

296InBlock.gif        
297ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
298InBlock.gif        /// Called by Dali when the object is Saved.
299ExpandedSubBlockEnd.gif        /// </summary>
300InBlock.gif        private void TInAccount_Saved(object sender, DaliObjectChangedEventArgs e)
301ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
302ExpandedSubBlockEnd.gif        }

303InBlock.gif        
304ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
305InBlock.gif        /// Called by Dali when the object is Inserting.
306ExpandedSubBlockEnd.gif        /// </summary>
307InBlock.gif        private void TInAccount_Inserting(object sender, DaliObjectChangingEventArgs e)
308ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
309ExpandedSubBlockEnd.gif        }

310InBlock.gif        
311ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
312InBlock.gif        /// Called by Dali when the object is Inserted.
313ExpandedSubBlockEnd.gif        /// </summary>
314InBlock.gif        private void TInAccount_Inserted(object sender, DaliObjectChangedEventArgs e)
315ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
316ExpandedSubBlockEnd.gif        }

317InBlock.gif        
318ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
319InBlock.gif        /// Called by Dali when the object is Updating.
320ExpandedSubBlockEnd.gif        /// </summary>
321InBlock.gif        private void TInAccount_Updating(object sender, DaliObjectChangingEventArgs e)
322ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
323ExpandedSubBlockEnd.gif        }

324InBlock.gif        
325ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
326InBlock.gif        /// Called by Dali when the object is Updated.
327ExpandedSubBlockEnd.gif        /// </summary>
328InBlock.gif        private void TInAccount_Updated(object sender, DaliObjectChangedEventArgs e)
329ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
330ExpandedSubBlockEnd.gif        }

331InBlock.gif        
332ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
333InBlock.gif        /// Called by Dali when the object is Deleting.
334ExpandedSubBlockEnd.gif        /// </summary>
335InBlock.gif        private void TInAccount_Deleting(object sender, DaliObjectChangingEventArgs e)
336ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
337ExpandedSubBlockEnd.gif        }

338InBlock.gif        
339ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
340InBlock.gif        /// Called by Dali when the object is Deleted.
341ExpandedSubBlockEnd.gif        /// </summary>
342InBlock.gif        private void TInAccount_Deleted(object sender, DaliObjectChangedEventArgs e)
343ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
344ExpandedSubBlockEnd.gif        }

345InBlock.gif        
346ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
347InBlock.gif        /// Called by Dali when the object is Changed.
348ExpandedSubBlockEnd.gif        /// </summary>
349InBlock.gif        private void TInAccount_Changed(object sender, DaliObjectFieldChangedEventArgs e)
350ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
351ExpandedSubBlockEnd.gif        }

352InBlock.gif        
353ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
354InBlock.gif        /// Called by Dali when the current database operation on the object is aborted.
355ExpandedSubBlockEnd.gif        /// </summary>
356InBlock.gif        private void TInAccount_Aborted(object sender, EventArgs e)
357ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
358ExpandedSubBlockEnd.gif        }

359ExpandedSubBlockEnd.gif    }

360ExpandedBlockEnd.gif}

361None.gif

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

转载于:https://www.cnblogs.com/jinyong/archive/2006/02/21/334474.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值