/// <summary> /// Inserts all locale string resources from XML /// </summary> /// <param name="languageId">The Language identifier</param> /// <param name="xml">The XML package</param> public void LanguagePackImport(int languageId, string xml) { //long-running query int?timeout = _context.CommandTimeout; try { _context.CommandTimeout = 600; _context.Sp_LanguagePackImport(languageId, xml); } catch (Exception exc) { Debug.WriteLine(exc.ToString()); throw; } finally { _context.CommandTimeout = timeout; } if (this.CacheEnabled) { _cacheManager.RemoveByPattern(LOCALSTRINGRESOURCES_PATTERN_KEY); } }