Example #1
0
 static void Main(string[] args)
 {
     using (var db = new ElearningDbContext())
     {
         db.Database.Initialize(true);
     }
 }
Example #2
0
 public UserController()
 {
     _db=new ElearningDbContext();
     _userTable = _db.Users;
 }
 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;
 }
 public ClassController()
 {
     _db = new ElearningDbContext();
     _classTable = _db.Class;
 }
 public ProjectController()
 {
     _db = new ElearningDbContext();
     _projectTable= _db.Project;
 }