public static Tasktimeentrys Load(System.Nullable<int> SysId) {
     resourceSchema.Dal.Tasktimeentrys dbo = null;
     try {
         dbo = new resourceSchema.Dal.Tasktimeentrys();
         System.Data.DataSet ds = dbo.TaskTimeEntrys_Select_One(SysId);
         Tasktimeentrys obj = null;
         if (GlobalTools.IsSafeDataSet(ds)) {
             if ((ds.Tables[0].Rows.Count > 0)) {
                 obj = new Tasktimeentrys();
                 obj.Fill(ds.Tables[0].Rows[0]);
             }
         }
         return obj;
     }
     catch (System.Exception ) {
         throw;
     }
     finally {
         if ((dbo != null)) {
             dbo.Dispose();
         }
     }
 }
 public static TasktimeentrysCollection GetAll() {
     resourceSchema.Dal.Tasktimeentrys dbo = null;
     try {
         dbo = new resourceSchema.Dal.Tasktimeentrys();
         System.Data.DataSet ds = dbo.TaskTimeEntrys_Select_All();
         TasktimeentrysCollection collection = new TasktimeentrysCollection();
         if (GlobalTools.IsSafeDataSet(ds)) {
             for (int i = 0; (i < ds.Tables[0].Rows.Count); i = (i + 1)) {
                 Tasktimeentrys obj = new Tasktimeentrys();
                 obj.Fill(ds.Tables[0].Rows[i]);
                 if ((obj != null)) {
                     collection.Add(obj);
                 }
             }
         }
         return collection;
     }
     catch (System.Exception ) {
         throw;
     }
     finally {
         if ((dbo != null)) {
             dbo.Dispose();
         }
     }
 }