我想知道谁会调用/创建PageModel-derived类的构造函数(在我的例子中是IndexModel)。在我看来,通过对剃须刀页面的每个请求,通过@model提供给@model的类都被实例化,还想知道是谁提供了构造函数参数上下文,即EF上下文:
public IndexModel(RazorPagesMovie.Models.RazorPagesMovieContext
运行Windows 7 Enterprise。安装了VS2013。我收到以下例外情况:
Configuration endpoint extension 'standardEndpoints/webHttpEndpoint' could not be found. Verify that this endpoint extension is properly registered in system.serviceModel/extensions/endpointExtensions and that it is spelled