示例#1
0
        public ExtractionResult Extract()
        {
            var result = new ExtractionResult();

            result.InvoiceTable = _invoiceRepository.ListInvoices();
            foreach (DataRow row in result.InvoiceTable.Rows)
            {
                Console.WriteLine("{0}-{1}-{2}", row[0], row[1], row[2]);
            }

            if (result.InvoiceTable.Rows.Count > 0)
            {
                result.EmployeeTable = _employeeRepository.ListEmployees();
                foreach (DataRow row in result.EmployeeTable.Rows)
                {
                    Console.WriteLine("{0}-{1}", row[0], row[1]);
                }
            }
            return(result);
        }
示例#2
0
        private static void Extract()
        {
            var myService = new ExtractionService();

            _extractionResult = myService.Extract();
        }