Beispiel #1
0
        public static void SaveData(IStudentDao studentDao)
        {
            var repository = studentDao.GetAll();

            using var sw = new StreamWriter("data.txt", false);
            foreach (var student in repository)
            {
                sw.WriteLine(student.ToString());
            }
        }
Beispiel #2
0
        public List <StudentDto> GetAll()
        {
            var entities = _studentDao.GetAll();

            return(entities.Select(x => ToStudentDto(x)).ToList());
        }
Beispiel #3
0
 private void dbLoadingButton_Click(object sender, System.EventArgs e)
 {
     DataWorker.ReadData(studentDao);
     ShowData(studentDao.GetAll());
 }
Beispiel #4
0
        public List <Student> GetAllStudents()
        {
            var lista = _studentDao.GetAll().ToList();

            return(lista);
        }
Beispiel #5
0
 public List <Student> GetAllStudent()
 {
     return(_studentDao.GetAll());
 }