Rez*_*aei 5 c# resharper abstract-class mvc-editor-templates asp.net-mvc-uihint
假设一个这样的抽象模型:
public abstract class MyClass : BaseEntity
{
[UIHint("File")]
public long? DocumentFileId { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
问题是Cannot resolve template 'File',虽然View编辑器模板中有File.cshtml.

关键是,如果我没有将MyClass定义为抽象类,则会解决错误.
我的问题是,为什么编辑器模板无法在抽象类中解析,我该如何处理呢?