Ejemplo n.º 1
0
 public HomeController(StudentMngContext context)
 {
     unit = new UnitOfWork(context);
 }
Ejemplo n.º 2
0
        //public StudentRepository()
        //    : this(new StudentMngContext())
        //{

        //}
        public StudentRepository(StudentMngContext context)
        {
            this.context = context;
        }
Ejemplo n.º 3
0
 //public UnitOfWork()
 //{
 //    context = new StudentMngContext();
 //}
 public UnitOfWork(StudentMngContext _context)
 {
     this.context = _context;
 }
Ejemplo n.º 4
0
        //public CourseRepository()
        //    : this(new StudentMngContext())
        //{

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