02 2016 档案
摘要:public static IApplicationEnvironment GetApplication(this RazorPage page) { var ae = page.Context.RequestServices.GetService(typeof(IApplicationEnvironment)) as IApplicationE...
阅读全文
摘要:1. Startup.cs 类的 Configure方法中, 加入Area路由设置代码: //app.UseMvcWithDefaultRoute(); app.UseMvc(routes=> { // add the new route here. routes.MapRoute(name: ...
阅读全文