private void AddAllSpecies(AppRoot appRoot) { using (var docSession = CreateSession()) { appRoot.SetPerformSpeciesDataUpdate(false); docSession.Store(appRoot); docSession.SaveChanges(); } var fileList = Directory.GetFiles(Path.Combine(_configSettings.GetEnvironmentRootPath(), _configSettings.GetSpeciesRelativePath())); foreach (var file in fileList.Where(x => !Path.GetFileName(x).StartsWith("UTF8-"))) { AddSpeciesKingdom(file); } }