Пример #1
0
        static void Main(string[] args)
        {
            EmployeeDataTableAdapter employeeDataTableAdapter = new EmployeeDataTableAdapter();
            Employee employee        = new Employee(employeeDataTableAdapter);
            var      listOfEmployees = employee.ListEmployees();

            foreach (var item in listOfEmployees)
            {
                Console.WriteLine("Name: {0} Age: {1} Id: {2}", item.Name, item.Age, item.Id);
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            EmployeeDataTableAdapter employeeDataTableAdapter = new EmployeeDataTableAdapter();
            Employee employee = new Employee(employeeDataTableAdapter);
            var listOfEmployees =   employee.ListEmployees();

            foreach (var item in listOfEmployees)
            {
                Console.WriteLine("Name: {0} Age: {1} Id: {2}", item.Name,item.Age,item.Id);

            }
        }