// GET: SQLServerModel public ActionResult Index() { webt2289_StudentManager_ThangEntities2 db = new webt2289_StudentManager_ThangEntities2(); List <Student> students = db.Students.ToList(); return(View(students)); }
//private ApplicationDbContext _context; public StudentController() { //_context = new ApplicationDbContext(); _context = new webt2289_StudentManager_ThangEntities2(); }
public UniversityController() { _context = new webt2289_StudentManager_ThangEntities2(); _context.Configuration.ProxyCreationEnabled = false; }
public ClassController() { _context = new webt2289_StudentManager_ThangEntities2(); }
public DepartmentController() { _context = new webt2289_StudentManager_ThangEntities2(); }
public UniversityController() { _context = new webt2289_StudentManager_ThangEntities2(); }