public AuthController(Eindproject2APIContext context, SignInManager <Users> signInMgr, ILogger <AuthController> logger, IPasswordHasher <Users> hasher, UserManager <Users> userManager, IConfiguration configuration) { this.context = context; this.logger = logger; this.signInMgr = signInMgr; this.configuration = configuration; this.userManager = userManager; this.hasher = hasher; }
public PlanRepo(Eindproject2APIContext context) : base(context) { this.context = context; }
//ctor dependancy van de applicatie context: public GenericRepo(Eindproject2APIContext context) { this._context = context; this._dbSet = context.Set <TEntity>(); //type mee te geven in ctor (GenericRepository<App>) //_context.Database.Log = new Logger().Log; }
public PlansController(Eindproject2APIContext context, IPlanRepo planRepo, IMapper mapper) { _context = context; PlanRepo = planRepo; Mapper = mapper; }