// // 這個檔案是 講師外訓滿意度 資料表的資料存取類別 檔案二 // 您可以修改這個檔案,加入您自訂的屬性與方法 // using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; using System.Data; using System.Data.Common; using System.Linq; using WebLib; using System.Data.SqlClient; namespace Education { /// /// 講師外訓滿意度 資料存取類別 /// public partial class DAC_講師外訓滿意度 : WebLib.DAC { #region 自動產生的資料存取方法 /// /// InsertOne 之前會執行此方法 /// 在這裡可以做一些檢查或是自動編號等動作 /// 回傳 false 會打斷 InsertOne 的執行 /// protected virtual bool BeforeInsertOne(講師外訓滿意度Item value) { return true; } /// /// InsertOne 之後會執行此方法 /// protected virtual void AfterInsertOne(講師外訓滿意度Item value) { } /// /// InsertOne 發生錯誤時會執行此方法 /// ///錯誤是否已經處理妥當 protected virtual void OnInsertOneError(Exception error, out bool handled) { handled = false; } /// /// UpdateOne 之前會執行此方法 /// 在這裡可以做一些檢查 /// 回傳 false 會打斷 UpdateOne 的執行 /// protected virtual bool BeforeUpdateOne(講師外訓滿意度Item value) { return true; } /// /// UpdateOne 之前會執行此方法 /// 在這裡可以做一些檢查 /// 回傳 false 會打斷 UpdateOne 的執行 /// protected virtual bool BeforeUpdateOne(講師外訓滿意度Item value, 講師外訓滿意度Item original_value) { return true; } /// /// UpdateOne 之後會執行此方法 /// protected virtual void AfterUpdateOne(講師外訓滿意度Item value) { } /// /// UpdateOne 之後會執行此方法 /// protected virtual void AfterUpdateOne(講師外訓滿意度Item value, 講師外訓滿意度Item original_value) { } /// /// UpdateOne 發生錯誤時會執行此方法 /// ///錯誤是否已經處理妥當 protected virtual void OnUpdateOneError(Exception error, out bool handled) { handled = false; } /// /// DeleteOne 之前會執行此方法 /// 在這裡可以做一些檢查 /// 回傳 false 會打斷 DeleteOne 的執行 /// protected virtual bool BeforeDeleteOne(講師外訓滿意度Item value) { return true; } /// /// DeleteOne 之後會執行此方法 /// protected virtual void AfterDeleteOne(講師外訓滿意度Item value) { } /// /// DeleteOne 之前會執行此方法 /// 在這裡可以做一些檢查 /// 回傳 false 會打斷 DeleteOne 的執行 /// protected virtual bool BeforeDeleteOne(int 編號, int DB_APPNO) { return true; } /// /// DeleteOne 之後會執行此方法 /// protected virtual void AfterDeleteOne(int 編號, int DB_APPNO) { } /// /// DeleteOne 發生錯誤時會執行此方法 /// ///錯誤是否已經處理妥當 protected virtual void OnDeleteOneError(Exception error, out bool handled) { handled = false; } #endregion // 有另外加上去的屬性及方法,請加在這裡 } /// ///講師外訓滿意度 資料集合類別 /// public partial class 講師外訓滿意度List : List<講師外訓滿意度Item> { // 有另外加上去的屬性及方法,請加在這裡 } /// ///講師外訓滿意度 資料紀錄類別 /// public partial class 講師外訓滿意度Item { // 有另外加上去的屬性及方法,請加在這裡 public int 合計 { get { return DAC.GetInt32(專業度) + DAC.GetInt32(授課技巧) + DAC.GetInt32(互動氛圍) + DAC.GetInt32(內容切題) + DAC.GetInt32(配合度); } } } }