public static void TestExtractRegions(string oracleWebUatConnString) { Console.WriteLine("Test - Extarcting Regions"); RegionExtract regionExtract = new RegionExtract(); List <Region> regions = regionExtract.ExtractRegions(oracleWebUatConnString); Console.WriteLine(regions); }
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); } }