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); }
public CreateNewLogStructCommand(string appGuid, LogTable lt) { m_newData = (LogTable)lt.Clone(); m_appGuid = appGuid; }
public DeleteLogStructCommand(string appGuid, LogTable lt) { m_data = (LogTable)lt.Clone(); m_appGuid = appGuid; }