public void ImportAuxiliaryTables(string tableDirectoryPath, bool isUseTables) { NameValueCollection nameValueCollection = null; if (DirectoryUtils.IsDirectoryExists(tableDirectoryPath)) { var tableIe = new TableIe(tableDirectoryPath); nameValueCollection = tableIe.ImportAuxiliaryTables(_siteInfo.Id, isUseTables); } SaveTableNameCache(nameValueCollection); }
// 导出网站所有相关辅助表以及除提交表单外的所有表样式 public void ExportTablesAndStyles(string tableDirectoryPath) { DirectoryUtils.CreateDirectoryIfNotExists(tableDirectoryPath); var tableIe = new TableIe(tableDirectoryPath); var styleIe = new TableStyleIe(tableDirectoryPath, _adminName); var siteInfo = SiteManager.GetSiteInfo(_siteInfo.Id); var tableNameList = SiteManager.GetTableNameList(siteInfo); foreach (var tableName in tableNameList) { tableIe.ExportAuxiliaryTable(tableName); styleIe.ExportTableStyles(siteInfo.Id, tableName); } styleIe.ExportTableStyles(siteInfo.Id, DataProvider.ChannelDao.TableName); styleIe.ExportTableStyles(siteInfo.Id, DataProvider.SiteDao.TableName); }