コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: PlanRepo.cs プロジェクト: Orhon/FullStackProject
 public PlanRepo(Eindproject2APIContext context) : base(context)
 {
     this.context = context;
 }
コード例 #3
0
 //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;
 }
コード例 #4
0
 public PlansController(Eindproject2APIContext context, IPlanRepo planRepo, IMapper mapper)
 {
     _context = context;
     PlanRepo = planRepo;
     Mapper   = mapper;
 }