public FlatFileStudentRepository(string filepath, HighSchoolRepository highSchoolRepository, FlatFileStudentSerializer serailzer)
 {
     _filepath             = filepath;
     _highSchoolRepository = highSchoolRepository;
     _serializer           = serailzer;
     constructStudentEntities();
 }
Пример #2
0
 public PostgresStudentRepository(DbConnection database, HighSchoolRepository highSchoolRepository)
 {
     _database             = database;
     _highSchoolRepository = highSchoolRepository;
 }
Пример #3
0
 public static void GetPersonById(long id)
 {
     HighSchoolRepository repository = new HighSchoolRepository();
     var data = repository.GetPersonById(id);
 }
Пример #4
0
 public static void GetAllPerson()
 {
     HighSchoolRepository repository = new HighSchoolRepository();
     var data = repository.GetAllPerson();
 }