コード例 #1
0
        // GET: SQLServerModel
        public ActionResult Index()
        {
            webt2289_StudentManager_ThangEntities2 db = new webt2289_StudentManager_ThangEntities2();
            List <Student> students = db.Students.ToList();

            return(View(students));
        }
コード例 #2
0
 //private ApplicationDbContext _context;
 public StudentController()
 {
     //_context = new ApplicationDbContext();
     _context = new webt2289_StudentManager_ThangEntities2();
 }
コード例 #3
0
 public UniversityController()
 {
     _context = new webt2289_StudentManager_ThangEntities2();
     _context.Configuration.ProxyCreationEnabled = false;
 }
コード例 #4
0
 public ClassController()
 {
     _context = new webt2289_StudentManager_ThangEntities2();
 }
コード例 #5
0
 public DepartmentController()
 {
     _context = new webt2289_StudentManager_ThangEntities2();
 }
コード例 #6
0
 public UniversityController()
 {
     _context = new webt2289_StudentManager_ThangEntities2();
 }