Exemple #1
0
        public static void TestExtractSubstations(string oracleWebUatConnString)
        {
            Console.WriteLine("Test - Extracting Substations");
            SubstationExtract        ssExtract          = new SubstationExtract();
            List <SubstationForeign> substationsForeign = ssExtract.ExtractSubstationsForeign(oracleWebUatConnString);

            Console.WriteLine(substationsForeign);
        }
Exemple #2
0
        public async Task ImportForeignSubstations(WRLDCWarehouseDbContext _context, ILogger _log, string oracleConnStr, EntityWriteOption opt)
        {
            SubstationExtract        ssExtract     = new SubstationExtract();
            List <SubstationForeign> ssForeignList = ssExtract.ExtractSubstationsForeign(oracleConnStr);

            LoadSubstation loadSS = new LoadSubstation();

            foreach (SubstationForeign ssForeign in ssForeignList)
            {
                Substation insertedSS = await loadSS.LoadSingleAsync(_context, _log, ssForeign, opt);
            }
        }