예제 #1
0
        public void DownloadForeignKeys()
        {
            var schemaFetcher = new SchemaFetcher(ConfigurationManager.AppSettings["OracleConnection"]);

            schemaFetcher.CreateLinkList();
            schemaFetcher.AddLinksToStorage();
        }
예제 #2
0
        private void btGetFK_Click(object sender, EventArgs e)
        {
            SetUIBlockState(block: true);
            try
            {
                var schemaFetcher = new SchemaFetcher(ConfigurationManager.AppSettings["OracleConnection"]);
                schemaFetcher.CreateLinkList();
                tbOutput.AppendText($"FKs fetched!\r\n");
                schemaFetcher.AddLinksToStorage();
                tbOutput.AppendText($"Links added to db!\r\n");
            }
            catch (Exception ex)
            {
                tbOutput.AppendText($"\r\nException occured: {ex.Message}\r\n");
            }

            SetUIBlockState(block: false);
        }