public static async Task <string> ImportTableStyleByZipFileAsync(IPathManager pathManager, IDatabaseManager databaseManager, string tableName, List <int> relatedIdentities, string zipFilePath) { var styleDirectoryPath = pathManager.GetTemporaryFilesPath("TableStyle"); DirectoryUtils.DeleteDirectoryIfExists(styleDirectoryPath); DirectoryUtils.CreateDirectoryIfNotExists(styleDirectoryPath); pathManager.ExtractZip(zipFilePath, styleDirectoryPath); await TableStyleIe.SingleImportTableStyleAsync(databaseManager, tableName, styleDirectoryPath, relatedIdentities); return(styleDirectoryPath); }
public static async Task ImportTableStyleByDirectoryAsync(IDatabaseManager databaseManager, string tableName, List <int> relatedIdentities, string styleDirectoryPath) { await TableStyleIe.SingleImportTableStyleAsync(databaseManager, tableName, styleDirectoryPath, relatedIdentities); }