UIHint can not resolve template in abstract models
- by Reza Owliaei
Assume an abstract model like this:
public abstract class MyClass : BaseEntity
{
[UIHint("File")]
public long? DocumentFileId { get; set; }
}
The problem is Cannot resolve template 'File', while there is File.cshtml in View editor templates.
The point is, if I don't define MyClass as an abstract class, error will be solved.
My question is, why editor template can not resolve in abstract classes, and how can I handle it?