예제 #1
0
 static void Main(string[] args)
 {
     using (var db = new ElearningDbContext())
     {
         db.Database.Initialize(true);
     }
 }
예제 #2
0
 public UserController()
 {
     _db=new ElearningDbContext();
     _userTable = _db.Users;
 }
예제 #3
0
 public AccountController()
 {
     _db = new ElearningDbContext();
     _userStore = new UserStore<User>(_db);
     _userManager = new UserManager<User>(_userStore);
 }
 public UserCourseService(ElearningDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public UserCourseController(ElearningDbContext context, IWebHostEnvironment hostingEnvironment)
 {
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
 }
예제 #6
0
 public ClassController()
 {
     _db = new ElearningDbContext();
     _classTable = _db.Class;
 }
예제 #7
0
 public ProjectController()
 {
     _db = new ElearningDbContext();
     _projectTable= _db.Project;
 }