public static void TestExtractOwners(string oracleWebUatConnString) { Console.WriteLine("Test - Extarcting Owners"); OwnerExtract ownerExtract = new OwnerExtract(); List <Owner> owners = ownerExtract.ExtractOwners(oracleWebUatConnString); Console.WriteLine(owners); }
public async Task ImportForeignOwners(WRLDCWarehouseDbContext _context, ILogger _log, string oracleConnStr, EntityWriteOption opt) { OwnerExtract ownerExtract = new OwnerExtract(); List <Owner> owners = ownerExtract.ExtractOwners(oracleConnStr); LoadOwner loadOwner = new LoadOwner(); foreach (Owner owner in owners) { Owner insertedOwner = await loadOwner.LoadSingleAsync(_context, _log, owner, opt); } }