Пример #1
0
        public secCrawlerData GetFormDownloadQueue()
        {
            var dtst    = new secCrawlerData();
            var adapter = new secCrawlerDataTableAdapters.tblSEC_FormsTableAdapter();

            adapter.Fill(dtst.tblSEC_Forms);
            return(dtst);
        }
Пример #2
0
 public void Save(secCrawlerData dtst)
 {
     if (dtst.tblSEC_Forms.IsInitialized)
     {
         var adapter = new secCrawlerDataTableAdapters.tblSEC_FormsTableAdapter();
         adapter.Update(dtst.tblSEC_Forms);
     }
     if (dtst.tblSEC_FormsToIngest.IsInitialized)
     {
         var adapter = new secCrawlerDataTableAdapters.tblSEC_FormsToIngestTableAdapter();
         adapter.Update(dtst.tblSEC_FormsToIngest);
     }
 }