コード例 #1
0
 public HomeController(StudentMngContext context)
 {
     unit = new UnitOfWork(context);
 }
コード例 #2
0
        //public StudentRepository()
        //    : this(new StudentMngContext())
        //{

        //}
        public StudentRepository(StudentMngContext context)
        {
            this.context = context;
        }
コード例 #3
0
 //public UnitOfWork()
 //{
 //    context = new StudentMngContext();
 //}
 public UnitOfWork(StudentMngContext _context)
 {
     this.context = _context;
 }
コード例 #4
0
        //public CourseRepository()
        //    : this(new StudentMngContext())
        //{

        //}
        public CourseRepository(StudentMngContext context)
        {
            this.context = context;
        }