我想知道谁会调用/创建PageModel-derived类的构造函数(在我的例子中是IndexModel)。在我看来,通过对剃须刀页面的每个请求,通过@model提供给@model的类都被实例化,还想知道是谁提供了构造函数参数上下文,即EF上下文:
public IndexModel(RazorPagesMovie.Models.RazorPagesMovieContext
对于"-ir“选项,aspnet_regiis实用程序的帮助文本显示如下:Install this version of ASP.NET.If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use它必须是我的
项目结构:
在我的项目中,Autofac位于基础设施CL项目中,如下所示:public static class ContainerSetup publicInvoke(builder); }并在启动类中注册Autofac容器,如下所示:
public IServiceProvider我是否应该还原我的program.cs文件中的所有代码并实现Serilog,并使用