示例#1
0
        public void DisplayEmployees()
        {
            var ormAccess    = new ORMaccess();
            var employees    = ormAccess.GetAllEmployees();
            var jobPositions = ormAccess.GetAllJobPositions();
            var pensionFunds = ormAccess.GetAllPensionFunds();

            foreach (var employee in employees)
            {
                var jobPosition = jobPositions.FirstOrDefault(j => j.Id == employee.JobPosition);
                var pensionFund = pensionFunds.FirstOrDefault(p => p.EmployeeId == employee.Id);
                DisplayEmployeeInformation(employee, jobPosition, pensionFund);
            }
            Console.ReadLine();
        }
示例#2
0
        public void UpdateSalaries()
        {
            var ormAccess = new ORMaccess();

            ormAccess.UpdateSalaries();
        }