我使用了T4MVC版本的3.16.0,我有这样的方法:
public async virtual Task<JsonResult> Read([ModelBinder(typeof(DataTablesBinder))] IDataTablesRequest requestModel)
{
//call async method here
}我运行T4MVC.tt,但是当我像这样调用该方法时:
@Url.Action(MVC.admin.News.Read())我会得到这样的编译器错误:
T4MVC中的方法没有过载
我使用Visual 2013和ASP.NET MVC 5.2
怎么了?
发布于 2016-06-28 06:13:38
通过右键单击t4mvc运行自定义工具,或者如果您不工作,请删除t4mvc并设置again.It解决您的问题。
https://stackoverflow.com/questions/38068257
复制相似问题