コード例 #1
0
ファイル: Startup.cs プロジェクト: gadjetboi/AspNetCore2API
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(
            IApplicationBuilder app,
            IHostingEnvironment env,
            ILoggerFactory loggerFactory,
            FormPdfEasyContext formPdfEasyContext)
        {
            loggerFactory.AddNLog();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            //TODO: implement database seed

            AutoMapper.Mapper.Initialize(config => {
                config.CreateMap <CustomUser, CustomUserDto>();
            });

            app.UseAuthentication();

            app.UseMvc();
        }
コード例 #2
0
 public UserRepository(FormPdfEasyContext context)
 {
     _context = context;
 }