public StudentRepo_SQL(IConfiguration config, IEducationRepo educationRepo) { var connectionConfig = config.GetSection("Configurations")["OtherConnection"]; connectionString = ConfigurationExtensions.GetConnectionString(config, "DefaultConnection"); this.educationRepo = educationRepo; }
} //helper voor HTTP public TeacherEducationsVM(IEducationRepo educationRepo, Teacher teacher) { this.Teacher = teacher; this.SelectedEducations = educationRepo.GetAllEducationsByTeacher(Teacher.Id); this.Educations = new MultiSelectList(educationRepo.GetAllEducationsAsync().Result, "Id", "Name", SelectedEducations); }
public TeacherController(ITeacherRepo teacherRepo, IEducationRepo educationRepo) { this.teacherRepo = teacherRepo; this.educationRepo = educationRepo; }
public StudentEducationVm(IEducationRepo educationRepo, Student student) { this.Student = student; //Selectlist houdt geselecteerde waarde bij.(bij edit indien EducationId) this.Education = new SelectList(educationRepo.GetAllEducationsAsync(null).Result, "Id", "Name", student.EducationId); }
public StudentRepo_SQL(SchoolDBContext context, IEducationRepo educationRepo) { this.context = context; this.educationRepo = educationRepo; }
public EducationController(IEducationRepo educationRepo) { this.educationRepo = educationRepo; }
public EducationController(IEducationRepo repo) { _repo = repo; }
public StudentRepo_ADO(IConfiguration configuration, IEducationRepo educationRepo) { connectionString = ConfigurationExtensions.GetConnectionString(configuration, "DefaultConnection"); this.educationRepo = educationRepo; }
public StudentController(IStudentRepo studentRepo, IEducationRepo educationRepo, ILogger <StudentController> logger) { this.studentRepo = studentRepo; this.educationRepo = educationRepo; this.logger = logger; }