public void UpdateImplementationLedger() { ImplementedBatchLedger.Clear(); ITransaction finder = new ListImplementedBatchTransaction(sqliteStore); finder.Execute(); PopulatedImplementedBatchLedgerFromTransactionResults(finder); }
void PopulatedImplementedBatchLedgerFromTransactionResults(ITransaction transaction) { ImplementedBatchLedger.Clear(); ImplementedBatchIdMappings.Clear(); int i = 0; foreach (IEntity entity in transaction.Results) { Entity <LoggedBatch> loggedEntity = entity as Entity <LoggedBatch>; ImplementedBatchIdMappings.Add(i, loggedEntity.SystemId); ImplementedBatchLedger.Add(loggedEntity.NativeModel); i++; } }