public List <CdcTableTypeModel> GetCdcDataFromTables(string fromLsn = null, string toLsn = null) { Logger.Log.Trace($"Getting cdc data with fromLsn:{fromLsn} and toLsn:{toLsn}"); var tablesGroup = new List <List <CdcTableTypeModel> > { _cdcImportService.ImportData(CdcCaptureConstants.ContentData, fromLsn, toLsn) }; return(tablesGroup.SelectMany(tg => tg).OrderBy(t => t.TransactionLsn).ToList()); }
public List <CdcTableTypeModel> GetCdcDataFromTables(string fromLsn = null, string toLsn = null) { Logger.Log.Trace($"Getting cdc data for with fromLsn:{fromLsn} and toLsn:{toLsn}"); var tablesGroup = new List <List <CdcTableTypeModel> > { _cdcImportService.ImportData(CdcCaptureConstants.Content, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.StatusType, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.ContentAttribute, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.ContentToContent, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.VirtualContentAsync, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.VirtualContentAttributeAsync, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.VirtualContentToContentRev, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.VirtualContentToContentAsync, fromLsn, toLsn), _cdcImportService.ImportData(CdcCaptureConstants.VirtualContentToContentAsyncRev, fromLsn, toLsn), GetItemToItemDtosFilteredByNetChanges(fromLsn, toLsn).ToList(), GetItemLinkAsyncDtosFilteredByNetChanges(fromLsn, toLsn).ToList(), GetContentArticleDtoFilteredByNetChanges(fromLsn, toLsn).ToList() }; return(tablesGroup.SelectMany(tg => tg).OrderBy(t => t.TransactionLsn).ToList()); }