//private DAL _master;
 //private DAL _components;
 //public UpdateMasterWorker(DAL master, DAL[] components)
 //{
 //}
 //public void Begin()
 //{
 //}
 public static bool HasUnassignedGUIDs(DAL db)
 {
     return db.GetRowCount("Tree", SELECT_TREES) > 0
      || db.GetRowCount("Plot", SELECT_PLOTS) > 0
      || db.GetRowCount("Log", SELECT_LOGS) > 0
      || db.GetRowCount("Stem", SELECT_STEMS) > 0
      || db.GetRowCount("TreeEstimate", SELECT_TREEEST) > 0;
 }
示例#2
0
 private static void InsureErrorLogEntry(DAL db, ErrorLogDO el)
 {
     if (db.GetRowCount(el.TableName, "WHERE rowID = ?", el.CN_Number) == 0)
     {
         el.Delete();
     }
 }
 private void InitializeState()
 {
     _masterPath = GetMasterPath(ParentDB.Path);
     _doesMasterExist = File.Exists(_masterPath);
     if (_doesMasterExist)
     {
         MasterDAL = new DAL(_masterPath);
         NumComponents = (int)MasterDAL.GetRowCount(CruiseDAL.Schema.COMPONENT._NAME, null);
     }
 }