static public bool SaveChangeLog(ref DdChangeLogExt item)
 {
   DaChangeLog da = new DaChangeLog(DataStore.DbConnection);
   if (!da.GetById(item.Id)) return false;
   da.Comments = item.Comments;
   da.FsaRevisionLogREF = item.FsaRevisionLogREF;
   da.FsaStaffREF = item.FsaStaffREF;
   da.Function = item.Function;
   da.MachineName = item.MachineName;
   da.Reference = item.Reference;
   da.TargetTableName = item.TargetTableName;
   da.TargetTableREF = item.TargetTableREF;
   da.TargetTableTimestamp = item.TargetTableTimestamp;
   da.UserDomainName = item.UserDomainName;
   da.UserName = item.UserName;
   bool ok = true;
   if (da._IsModified)
   {
     ok = da.Save();
     if (ok) item = new DdChangeLogExt(da.GetBuffer());
   }
   return ok;
 }
    static public bool AddChangeLog(ref DdChangeLogExt item)
    {
#if false
      DaChangeLog da = new DaChangeLog(DataStore.DbConnection);
      da.Clear();
      da.Comments = item.Comments;
      da.FsaRevisionLogREF = item.FsaRevisionLogREF;
      da.FsaStaffREF = item.FsaStaffREF;
      da.Function = item.Function;
      da.MachineName = item.MachineName;
      da.Reference = item.Reference;
      da.TargetTableName = item.TargetTableName;
      da.TargetTableREF = item.TargetTableREF;
      da.TargetTableTimestamp = item.TargetTableTimestamp;
      da.UserDomainName = item.UserDomainName;
      da.UserName = item.UserName;
      bool ok = da.Insert();
      if (ok) item = new DdChangeLogExt(da.GetBuffer());
      return ok;
#else
      return true;
#endif
    }
 static public DdChangeLogExt GetChangeLogInfo(int ChangeLogREF)
 {
   DaChangeLog da = new DaChangeLog(DataStore.DbConnection);
   if (da.GetById(ChangeLogREF))
     return new DdChangeLogExt(da.GetBuffer());
   else
     return null;
 }