static void Main(string[] args) { using (var db = new ElearningDbContext()) { db.Database.Initialize(true); } }
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; }