private void BuildCatalogsAndSchemas() { foreach (var group in mappingResolver.GetSchemaTasks().GroupBy(t => t.Catalog)) { var catalog = new Catalog(group.Key); targetResult.Catalogs.Add(catalog); foreach (var task in group) { catalog.CreateSchema(task.Schema); } } }
private IList <string> GetCurrentExtratableCatalogs() { return(mappingResolver.GetSchemaTasks().GroupBy(t => t.Catalog).Select(t => t.Key).ToList()); }