0
この例ではSudentRepository
の目的は何ですか?なぜ私は1つ必要ですか?MVCのリポジトリパターン:コントローラコードの説明
public class StudentController : Controller
{
private IStudentRepository _repository;
public StudentController() : this(new StudentRepository())
{
}
public StudentController(IStudentRepository repository)
{
_repository = repository;
}