Exemple #1
0
        public void AddMetaData(MetaData metaData)
        {
            if (metaData != null)
            {
                if (metaData.Catalog != null)
                {
                    Catalogs.AddRange(metaData.Catalog);
                }

                if (metaData.PriceGroups != null)
                {
                    PriceGroups.AddRange(metaData.PriceGroups);
                }

                if (metaData.NomenclatureGroups != null)
                {
                    NomenclatureGroups.AddRange(metaData.NomenclatureGroups);
                }

                if (metaData.Brands != null)
                {
                    Brands.AddRange(metaData.Brands);
                }

                if (metaData.TypesOfPrices != null)
                {
                    TypesOfPrices.AddRange(metaData.TypesOfPrices);
                }

                if (metaData.CommodityDirections != null)
                {
                    CommodityDirections.AddRange(metaData.CommodityDirections);
                }
            }
        }
 public AggregateCatalog(IEnumerable <ComposablePartCatalog> catalogs)
     : this()
 {
     Catalogs.AddRange(catalogs);
 }