// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ChargerInfoContext chargerInfoContext) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMvc(); app.UseStatusCodePages(); chargerInfoContext.EnsureSeedDataForContext(); app.Run(async(context) => { await context.Response.WriteAsync("Hello World!"); }); }
public ChargerInfoRepository(ChargerInfoContext context) { _context = context; }
public DummyController(ChargerInfoContext cx) { _cx = cx; }