将示例项目类型升级为 .net core 3.1

This commit is contained in:
28810
2019-12-11 22:11:27 +08:00
parent 9bd815fe35
commit 3a889504fb
21 changed files with 104 additions and 117 deletions

View File

@ -68,13 +68,10 @@ namespace efcore_to_freesql
services.AddMvc();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
public void Configure(IApplicationBuilder app)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
app.UseDeveloperExceptionPage();
app.UseMvc();
app.UseEndpoints(a => a.MapControllers());
}
}
}