Beispiel #1
0
        public static void TestExtractRegions(string oracleWebUatConnString)
        {
            Console.WriteLine("Test - Extarcting Regions");
            RegionExtract regionExtract = new RegionExtract();
            List <Region> regions       = regionExtract.ExtractRegions(oracleWebUatConnString);

            Console.WriteLine(regions);
        }
Beispiel #2
0
        public async Task ImportForeignRegions(WRLDCWarehouseDbContext _context, ILogger _log, string oracleConnStr, EntityWriteOption opt)
        {
            RegionExtract regionExtract = new RegionExtract();
            List <Region> regions       = regionExtract.ExtractRegions(oracleConnStr);

            LoadRegion loadRegion = new LoadRegion();

            foreach (Region region in regions)
            {
                Region insertedRegion = await loadRegion.LoadSingleAsync(_context, _log, region, opt);
            }
        }