Пример #1
0
        public static void TestExtractOwners(string oracleWebUatConnString)
        {
            Console.WriteLine("Test - Extarcting Owners");
            OwnerExtract ownerExtract = new OwnerExtract();
            List <Owner> owners       = ownerExtract.ExtractOwners(oracleWebUatConnString);

            Console.WriteLine(owners);
        }
Пример #2
0
        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);
            }
        }