Exemple #1
0
        public void UpdateImplementationLedger()
        {
            ImplementedBatchLedger.Clear();
            ITransaction finder = new ListImplementedBatchTransaction(sqliteStore);

            finder.Execute();
            PopulatedImplementedBatchLedgerFromTransactionResults(finder);
        }
Exemple #2
0
        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++;
            }
        }