Exemplo n.º 1
0
 private void GetProductsByManufacturerFromDb(InManufacturer manufacturer)
 {
     var series = new InManufacturerSeriesManager(Constants.ConnectionString).GetData(manufacturer);
     manufacturer.SeriesList.AddRange(series);
 }
Exemplo n.º 2
0
        private static void ExportManufacturerSeries(String ManufacturerCode)
        {
            String ConnStr = String.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Persist Security Info=True", Settings.GetValue("WebSpiderDB"));

            InManufacturer manufacturer = new InManufacturer();
            manufacturer.Code = ManufacturerCode;
            List<InManufacturerSeries> series = new InManufacturerSeriesManager(Constants.ConnectionString).GetData(manufacturer);

            foreach (InManufacturerSeries s in series)
                new ManufacturerSeriesManager(ConnStr).Save(ManufacturerCode, s);
        }