Пример #1
0
        public bool AddTable(string appGuid, LogTable table)
        {
            if (!m_existingApps.ContainsKey(appGuid))
            {
                throw new Exception("要添加的日志结构所属的应用程序不存在");
            }

            if (DBService.Instance.AddTable(appGuid, table))
            {
                m_existingApps[appGuid].AddTable((LogTable)table.Clone());
                return(true);
            }

            return(false);
        }
Пример #2
0
 public CreateNewLogStructCommand(string appGuid, LogTable lt)
 {
     m_newData = (LogTable)lt.Clone();
     m_appGuid = appGuid;
 }
Пример #3
0
 public DeleteLogStructCommand(string appGuid, LogTable lt)
 {
     m_data    = (LogTable)lt.Clone();
     m_appGuid = appGuid;
 }